Hello there,
I'm having some issues to get my RadAjaxManager AjaxRequest work in my project. Below is my source code.
- RadAjaxManager configuration
01.<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">02. <AjaxSettings>03. <telerik:AjaxSetting AjaxControlID="RadComboBox1">04. <UpdatedControls>05. <telerik:AjaxUpdatedControl ControlID="RadComboBox2" LoadingPanelID="RadAjaxLoadingPanel1" />06. <telerik:AjaxUpdatedControl ControlID="RadComboBox3" LoadingPanelID="RadAjaxLoadingPanel1" />07. <telerik:AjaxUpdatedControl ControlID="RadComboBox4" LoadingPanelID="RadAjaxLoadingPanel1" />08. </UpdatedControls>09. </telerik:AjaxSetting>10. <telerik:AjaxSetting AjaxControlID="RadComboBox2">11. <UpdatedControls>12. <telerik:AjaxUpdatedControl ControlID="RadComboBox4" LoadingPanelID="RadAjaxLoadingPanel1" />13. </UpdatedControls>14. </telerik:AjaxSetting>15. </AjaxSettings>16.</telerik:RadAjaxManager>17.<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px"18. Width="75px" >19. <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'20. style="border: 0;" />21.</telerik:RadAjaxLoadingPanel>- RadComboBox configuration, same for all of them so I just post one :
1.<telerik:RadComboBox RenderMode="Classic" ID="RadComboBox1" runat="server" CheckBoxes="true"2. EnableCheckAllItemsCheckBox="true" DataTextField="name" DataValueField="id" AutoPostBack="true"3. OnClientDropDownClosed="ClientCollapsedComboBox">4.</telerik:RadComboBox>- Javascript used for making AjaxRequest with OnClientDropDownClosed event :
1.<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">2. <script type="text/javascript">3. function ClientCollapsedComboBox(sender, eventArgs) {4. var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");5. ajaxManager.ajaxRequest();6. }7. </script>8.</telerik:RadCodeBlock>- And finally my AjaxRequest code behind method :
1.protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)2.{3. RadComboBox4.Items.Clear();4. RadComboBox4.DataBind();5. // doing some work here6.}
On closing dropdown the event is correctly fired. So, here come my questions :
- While debugging I enter in RadAjaxManager1_AjaxRequest method but the changes made are not displayed on the page.Is there something wrong in my config ?
- Except retrieving the id of the element which fired the event and do some switch/case like job in RadAjaxManager1_AjaxRequest method is there another way to do some work based on the element that fired the event ?
If there is anything unclear with my questions or anything else, please tell me and I'll try to develop.
Regards,