Hi All,
Please suggest me on this:
Step 1: I have .aspx page which has a master page for it in which RadAjaxManager is placed.
Step 2: In this page I have a user control say uc1 (along with RadManagerProxy) which holds another user control say uc2 in it along with a grid.
Step 3: In uc2 I am having a rad window and other label controls. I am modifying some content in rad window and calling a javascript function in uc2 which is raised when we close rad window.
Step 4: I am calling master manager events in uc1 to update the grid as specified in the following url: http://www.telerik.com/help/aspnet-ajax/ajax-manager-proxy.html
Step5: My problem is the above code works fine when we have only one instance of both the controls i.e. uc1 & uc2. But when we have more than one instance of both controls in a page then updating one instance of uc2 will update rest of the instances of uc2 which is in uc1. That is it is calling manager.AjaxRequest += new RadAjaxControl.AjaxRequestDelegate(manager_AjaxRequest);
as many times as we have instances. But I want to call that event only once for that particular instance.
I know its confusing, please let me know if anybody require further explanation.
Please suggest me on this:
Step 1: I have .aspx page which has a master page for it in which RadAjaxManager is placed.
Step 2: In this page I have a user control say uc1 (along with RadManagerProxy) which holds another user control say uc2 in it along with a grid.
Step 3: In uc2 I am having a rad window and other label controls. I am modifying some content in rad window and calling a javascript function in uc2 which is raised when we close rad window.
Step 4: I am calling master manager events in uc1 to update the grid as specified in the following url: http://www.telerik.com/help/aspnet-ajax/ajax-manager-proxy.html
Step5: My problem is the above code works fine when we have only one instance of both the controls i.e. uc1 & uc2. But when we have more than one instance of both controls in a page then updating one instance of uc2 will update rest of the instances of uc2 which is in uc1. That is it is calling manager.AjaxRequest += new RadAjaxControl.AjaxRequestDelegate(manager_AjaxRequest);
as many times as we have instances. But I want to call that event only once for that particular instance.
I know its confusing, please let me know if anybody require further explanation.