All grids are reading data from a datasource in the backend. There are two grids are sharing one data field. It means that if the data column changes on one grid it should updates to the other grid as well. In the ASPX file, I define the AJAX manager as follow,
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="rgOpenHole">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="rgOpenHole" LoadingPanelID="RadAjaxLoadingPanel1" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="rgDrillString">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="rgDrillString" LoadingPanelID="RadAjaxLoadingPanel1" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="rgHarzard">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="rgHarzard" LoadingPanelID="RadAjaxLoadingPanel1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
In this case, if the grid rgOpenHole changes, it should populate the grid rgHarzard, but it does not work!
I put code to force the update in rgOpenHole_UpdateCommand like this,
rgOpenHole.Rebind()
rgHarzard.Rebind()
The rgOpenHole works as usual but rgHarzard does not update! I step into the code debugger and it does step through rgHarzard.Rebind(). It seems that the rgHarzard does not react at all.
I know if I put rgOpenHole and rgHarzard into one single UpdateControls tag, it update the rgHazard, but it also causes other issue. So I wonder if I can update it through java script and ajax call in the client site?
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="rgOpenHole">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="rgOpenHole" LoadingPanelID="RadAjaxLoadingPanel1" />
<telerik:AjaxUpdatedControl ControlID="rgHarzard" LoadingPanelID="RadAjaxLoadingPanel1" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="rgDrillString">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="rgDrillString" LoadingPanelID="RadAjaxLoadingPanel1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
Any idea?
Simon Feng