RadAjax controls allow you to force specific controls to make postback requests instead of AJAX ones even when they are wrapped inside a RadAjaxPanel or ajaxified by a RadAjaxManager controls. That is especially useful for file uploads as due to the specifics of Internet forms, files are uploaded only during postback requests (unless you use RadAsyncUpload to upload files asynchronously).
In this example, the Save button executes a regular postback request when a file is chosen. In order to force a control to make postbacks, you need to handle the OnRequestStart client-side event and set the EnableAjax property to false like this:
function
OnRequestStart(target, arguments)
{
if
(arguments.get_eventTarget().indexOf(
"ButtonSend"
) > -1)
{
arguments.set_enableAjax(
false
);
}
}
Please note that if you enter an invalid filename you will receive a browser security message.