Hi,
I have a lable control on my page which is not getting updated on an ajax callback. I can't figure out what's missing.
I have a button (cmdSearch) on my page with fires a RadWindow dialog. On the calling page I have an onClientClose handler in the javascript.
In that handler I have the followng code:
It works great and the event handler on the server side gets called.
I have my RadAjaxManagerProxy set as follows:
The problem is that the label is never updated when I return from the Ajax call.
What am I missing?
Thanks ... Ed
I have a lable control on my page which is not getting updated on an ajax callback. I can't figure out what's missing.
I have a button (cmdSearch) on my page with fires a RadWindow dialog. On the calling page I have an onClientClose handler in the javascript.
In that handler I have the followng code:
| function DoDialogClose(sender) |
| { |
| if (!sender.argument) |
| return false; |
| var sEventArg = "Update a Label"; |
| if (sEventArg != "") { |
| var ram = $find("ctl00_RadAjaxManager1"); |
| ram.ajaxRequest(sEventArg); |
| } |
| } |
It works great and the event handler on the server side gets called.
| Protected Sub RadAjaxManager1_AjaxRequest(ByVal sender As Object, ByVal e As Telerik.Web.UI.AjaxRequestEventArgs) |
| If e.Argument.Length > 0 Then |
| lblMyLabel.Text = "Some text" |
| End If |
| End Sub |
I have my RadAjaxManagerProxy set as follows:
| <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server"> |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="cmdSearch"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="lblMyLabel" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| </telerik:RadAjaxManagerProxy> |
The problem is that the label is never updated when I return from the Ajax call.
What am I missing?
Thanks ... Ed