I have the following scenario. I have a master page with the scriptmanager and radajaxmanager on it. On the master page I have two contentareas. On the derived page I have a radajaxmanager proxy in the first of the two content areas.
On content area one is a treeview. On content area two us an asp:panel[1] with a button and a second asp:panel[2]. We dyanimcally add usercontrols to the inner panel based upon the page mode. Everything up to this point works fine. When the page posts back, we recreate the user controls and everything works fine, in a general sense.
We have dynamically added the ajaxmanager action from the code which states, in short, that the button will update the treeview and asp:panel[2]. We have also added one (same exact criteria as the button) for the user control. This works fine for the button. I can click on this and changes are reflected in the treeview and asp:panel[2] just as expected.
Now when the user control in asp:panel[2] does a postback using it's internally managed button (that is a button on the user control) the page posts back but only asp:panel[1] is updated. The treeview is never updated to relfect the change.
I originally had these guys wrapped on radajaxpanel's but I read that this could be a problem.
So, the short question, seeing that I have ajaxmanager on the master page, and the ajaxmanagerproxy on the base page, how do I handle events within the user control that need to affect items at the base page?
I've tried adding another ajaxmanager to the user control but I simply don't have the reference to the base page treeview and panel data to create the callback. I have tried manually putting the control names into the user control ajaxmanagerproxy but that did nothing (other than throw some javascript error (which I didn't log)).
Is there a simple way to acheive this?
On content area one is a treeview. On content area two us an asp:panel[1] with a button and a second asp:panel[2]. We dyanimcally add usercontrols to the inner panel based upon the page mode. Everything up to this point works fine. When the page posts back, we recreate the user controls and everything works fine, in a general sense.
We have dynamically added the ajaxmanager action from the code which states, in short, that the button will update the treeview and asp:panel[2]. We have also added one (same exact criteria as the button) for the user control. This works fine for the button. I can click on this and changes are reflected in the treeview and asp:panel[2] just as expected.
Now when the user control in asp:panel[2] does a postback using it's internally managed button (that is a button on the user control) the page posts back but only asp:panel[1] is updated. The treeview is never updated to relfect the change.
I originally had these guys wrapped on radajaxpanel's but I read that this could be a problem.
So, the short question, seeing that I have ajaxmanager on the master page, and the ajaxmanagerproxy on the base page, how do I handle events within the user control that need to affect items at the base page?
I've tried adding another ajaxmanager to the user control but I simply don't have the reference to the base page treeview and panel data to create the callback. I have tried manually putting the control names into the user control ajaxmanagerproxy but that did nothing (other than throw some javascript error (which I didn't log)).
Is there a simple way to acheive this?