Hi, I've got a fairly complex scenario, but let me describe the overall idea and then see if you can point me in the right direction.
I am in an ASP.NET web app, using nested user controls (ascx files) and using the RadAjaxManager in the main aspx page. This page contains the nested user controls, and by "nested" I mean that the aspx page contains several user controls, and each user control may contain other user controls.
GOAL:
From clientside javascript in the main page, I want to call a server side method and have the individual server controls in my nested user controls, be updated / refreshed.
Here is what I have working:
- I've written code in the RadAjaxManager1_AjaxRequest method of the main page, that calls a publicly exposed method in one of my nested user controls.
- The call to RadAjaxManager1_AjaxRequest is kicked off by a javascript function in my main page.
- The method that is called in the user control, sets the Visible property of a button that resides in that user control, to false.
PROBLEM:
With _AjaxRequest, all of the code is fired and runs, BUT, the button does not disappear. In other words, that control isn't being updated by the RadAjaxManager, to reflect that it's visible property is false.
I've tried various <AjaxSettings> <UpdatedControls> settings on the RadAjaxManager, but nothing is working.
HOWEVER, from the same javascript function that calls the AjaxRequest method, if I instead use __DoPostBack where my target is a button with a click event, it DOES work. That method is fired and the Visible property of a button is set to false, and the UI is refreshed and the button disappears.
So, I'm really wondering if you have any advice on what to look for.
And, am I trying to use the RadAjaxManager1_AjaxRequest inappropriately?
Thanks,
Brent
I am in an ASP.NET web app, using nested user controls (ascx files) and using the RadAjaxManager in the main aspx page. This page contains the nested user controls, and by "nested" I mean that the aspx page contains several user controls, and each user control may contain other user controls.
GOAL:
From clientside javascript in the main page, I want to call a server side method and have the individual server controls in my nested user controls, be updated / refreshed.
Here is what I have working:
- I've written code in the RadAjaxManager1_AjaxRequest method of the main page, that calls a publicly exposed method in one of my nested user controls.
- The call to RadAjaxManager1_AjaxRequest is kicked off by a javascript function in my main page.
- The method that is called in the user control, sets the Visible property of a button that resides in that user control, to false.
PROBLEM:
With _AjaxRequest, all of the code is fired and runs, BUT, the button does not disappear. In other words, that control isn't being updated by the RadAjaxManager, to reflect that it's visible property is false.
I've tried various <AjaxSettings> <UpdatedControls> settings on the RadAjaxManager, but nothing is working.
HOWEVER, from the same javascript function that calls the AjaxRequest method, if I instead use __DoPostBack where my target is a button with a click event, it DOES work. That method is fired and the Visible property of a button is set to false, and the UI is refreshed and the button disappears.
So, I'm really wondering if you have any advice on what to look for.
And, am I trying to use the RadAjaxManager1_AjaxRequest inappropriately?
Thanks,
Brent