I'm running into a strange problem where my use of the client-side AjaxRequest method is causing undesirable content updates on the page.
First, let me explain my scenario, which is rather complex.
I have several User Controls on a portal-styled page. Each time a User Control is created, I pass a reference of the AjaxManager to the User Control, then I have the User Control add an AjaxSetting to the AjaxManager so that the AjaxManager can trigger an Ajax Request that will update the content in the User Control.
Now the problem. Say I have UC's (User Controls) 1, 2, and 3 all waiting for queued Ajax requests to complete. If I were to have disabled the buttons, as soon as any one of the Ajax requests completed, the buttons in all three of the UC's got re-enabled. After changing that to an overlay DIV, the DIV's in each of the UC's returned to their invisible state as soon as the Ajax request for any one of the UC's completed.
Having gotten to a point I'm pretty happy with how it works, I ran into another problem. I have a particular UC that has a server-side HTMLTable. In the processing of the Page_Load event, a routine runs a report that adds rows and cells to the table. Now, when another UC triggers an Ajax request, upon completion, this particular table returns to a state where it has no data in it. Effectively, all of the server-side controls that were added after the Page_Init processing (the rows and cells that hold the data), no longer exist and they disappear.
Now, I borrowed this code from another application, and I can certainly re-write it to build dynamic HTML that I shove into a DIV. Since I do that elsewhere, I expect that to work ok - I just don't really want to do that.
So, after all that, here are my questions.
- What exactly is the AjaxManagerProxy? I was hoping that perhaps each UC could have an AjaxManagerProxy that would act independently. I could add the AjaxSettings to the AjaxManagerProxy so that it's set to ONLY affect content in the one UC. Having read what little I could find on the AjaxManagerProxy, it seems to just transmit the settings and stuff back to the main AjaxManager, so nothing would really change. I wish the Overview documentation on the RadAjaxManagerProxy explained what its purpose was and how it's designed to be used.
- Is there a way, client-side, to tell the AjaxManager to perhaps temporarily NOT update content in some of the controls identified during the process of Adding the AjaxSettings? For example, on the server, I tell the AjaxManager (via adding AjaxSettings) that it will be updating content in DIV's DIV1, DIV2, and DIV3. Before making an Ajax Request, however, I would like to tell the AjaxManager that, for this request, we're only updating DIV1. Next time, I might tell it that we're only updating DIV3.
Thank you very much for reading this rather lengthy post and helping out.