Hello,
Forgive me as this may seem like a newbie question, I'm trying to do a simple operation of disabling a control (asp.net Button) during an Ajax operation based on this article:
http://www.telerik.com/help/aspnet-ajax/ajxdisablecontrolsduringajax.html
The structure I have as follow
WebUserControl:
<telerik:RadAjaxManagerProxy ID="AjaxManagerProxy1" runat="server">
<telerik:AjaxSetting AjaxControlID="btnFilter">
<AjaxSettings>
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="grdReport" LoadingPanelID="RadAjaxLoadingPanel1"
UpdatePanelHeight="" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManagerProxy>
Master page
Masterpage:
<script type="text/javascript">
function RequestStart(sender, args) {
<script type="text/javascript">
function RequestStart(sender, args)
{
args.EventTargetElement.disabled = true;
}
function ResponseEnd(sender, args)
{
args.EventTargetElement.disabled = false;
}
</script>
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
<telerik:RadAjaxManager id="RadAjaxManager1" runat="server">
<ClientEvents OnRequestStart="RequestStart" OnResponseEnd="ResponseEnd" />
</telerik:RadAjaxManager>
Now, args.EventTargetElement is always coming as null, I tried placing the script in the usercontrol but that didn't make a difference. Can you please help?
Regards,
Cal
Forgive me as this may seem like a newbie question, I'm trying to do a simple operation of disabling a control (asp.net Button) during an Ajax operation based on this article:
http://www.telerik.com/help/aspnet-ajax/ajxdisablecontrolsduringajax.html
The structure I have as follow
WebUserControl:
<telerik:RadAjaxManagerProxy ID="AjaxManagerProxy1" runat="server">
<telerik:AjaxSetting AjaxControlID="btnFilter">
<AjaxSettings>
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="grdReport" LoadingPanelID="RadAjaxLoadingPanel1"
UpdatePanelHeight="" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManagerProxy>
Master page
Masterpage:
<script type="text/javascript">
function RequestStart(sender, args) {
<script type="text/javascript">
function RequestStart(sender, args)
{
args.EventTargetElement.disabled = true;
}
function ResponseEnd(sender, args)
{
args.EventTargetElement.disabled = false;
}
</script>
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
<telerik:RadAjaxManager id="RadAjaxManager1" runat="server">
<ClientEvents OnRequestStart="RequestStart" OnResponseEnd="ResponseEnd" />
</telerik:RadAjaxManager>
Now, args.EventTargetElement is always coming as null, I tried placing the script in the usercontrol but that didn't make a difference. Can you please help?
Regards,
Cal