I am using the following RadAjaxManager code to control a RadDatePicker and a RadGrid. I want the grid to update when either of those controls fires. Changing the date in the date picker will load a new set of data in the grid.
It technically works, I guess, but not as well as I would expect when changing the date on the calendar. When events fire on the grid, I can see the LoadingPanel during the duration of the update until the changes are processed.
When changing the date on the date picker, the loading panel only flashes on the grid and immediately disappears. The update still takes another moment to occur. (On the same note, the status bar of the grid also returns to "Ready" immediately even though the update is not complete.)
Is there something I have wrong in this declaration to cause this to happen?
Thanks,
Joel
<TELERIK:RadAjaxManager ID="AjaxManager" runat="server">
<AjaxSettings>
<TELERIK:AjaxSetting AjaxControlID="rdtWorkDate">
<UpdatedControls>
<TELERIK:AjaxUpdatedControl ControlID="rgSchedule" LoadingPanelID="LoadingPanel" />
</UpdatedControls>
</TELERIK:AjaxSetting>
<TELERIK:AjaxSetting AjaxControlID="rgSchedule">
<UpdatedControls>
<TELERIK:AjaxUpdatedControl ControlID="rgSchedule" LoadingPanelID="LoadingPanel" />
</UpdatedControls>
</TELERIK:AjaxSetting>
</AjaxSettings>
</TELERIK:RadAjaxManager>
<TELERIK:RadAjaxLoadingPanel runat="server" ID="LoadingPanel" Transparency="30" BackColor="#E0E0E0">
<img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' style="border:0" />
</TELERIK:RadAjaxLoadingPanel>
It technically works, I guess, but not as well as I would expect when changing the date on the calendar. When events fire on the grid, I can see the LoadingPanel during the duration of the update until the changes are processed.
When changing the date on the date picker, the loading panel only flashes on the grid and immediately disappears. The update still takes another moment to occur. (On the same note, the status bar of the grid also returns to "Ready" immediately even though the update is not complete.)
Is there something I have wrong in this declaration to cause this to happen?
Thanks,
Joel
<TELERIK:RadAjaxManager ID="AjaxManager" runat="server">
<AjaxSettings>
<TELERIK:AjaxSetting AjaxControlID="rdtWorkDate">
<UpdatedControls>
<TELERIK:AjaxUpdatedControl ControlID="rgSchedule" LoadingPanelID="LoadingPanel" />
</UpdatedControls>
</TELERIK:AjaxSetting>
<TELERIK:AjaxSetting AjaxControlID="rgSchedule">
<UpdatedControls>
<TELERIK:AjaxUpdatedControl ControlID="rgSchedule" LoadingPanelID="LoadingPanel" />
</UpdatedControls>
</TELERIK:AjaxSetting>
</AjaxSettings>
</TELERIK:RadAjaxManager>
<TELERIK:RadAjaxLoadingPanel runat="server" ID="LoadingPanel" Transparency="30" BackColor="#E0E0E0">
<img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' style="border:0" />
</TELERIK:RadAjaxLoadingPanel>