I have a page with 2 radgrid controls. On pages where I have only one RadGrid, I use RadAjaxManager on the grid control and it works good. But Here where I have 2 grids on same page, and using RadAjaxManager on each grid, I saw a couple of issues like sorting not working. So i read about the RadAjaxManagerProxy. I gave it a try but failed.
On the main page I added the RadAjaxManager as follows:
Both the _BANCtrl and _DocumentCtrl are added to an Update panel. Next in the _BANCtrl, I add the proxy as follows:
I have a similar thing on _DocumentCtrl also. But it doesnt work. When I sort, i get an error as follows:
Uncaught TypeError: Cannot set property 'control' of undefined. I am sure I have not set the RadAjaxManagerProxy and RadAjaxManager correctly.
On the main page I added the RadAjaxManager as follows:
protected override void OnPreRender(EventArgs e)
{
base.OnPreRender(e);
RadAjaxManager manager = new RadAjaxManager();
manager.ID = "RadAjaxManager1";
manager.AjaxSettings.AddAjaxSetting(_BANCtrl, _UpdatePanel);
manager.AjaxSettings.AddAjaxSetting(_DocumentCtrl, _UpdatePanel);
this._FsMain.Controls.Add(manager);
}
protected override void OnPreRender(EventArgs e)
{
base.OnPreRender(e);
radProxy.ID = "RadAjaxManagerProxy1";
radProxy.AjaxSettings.AddAjaxSetting(this._AssignBanGrid, _Panel);
}
Uncaught TypeError: Cannot set property 'control' of undefined. I am sure I have not set the RadAjaxManagerProxy and RadAjaxManager correctly.