Dear Telerik-Staff,
my scenario looks as follows:
I have a masterpage containing a radtreeview inside a radpanel. This tree stores information about data assigned to a specific user. In one of my content pages (which is nested in the masterpage) I perform an operation in which the data assigned to the above called user is updated.
When this operation success I want to update the radtreeview on the masterpage. Thus, I did the following:
1.)
In the method which updates the data on the content page, I call
2.)
On the masterpage, I have an AjaxManager (NOT a proxy!) which registers the AjaxRequest-Event:
3.)
In the code behind file of the master page I handle the event:
4.)
In the markup-file of the masterpage I defined the controls to be ajaxyfied as follows:
The event fires as expected, but the tree view on the masterpage isn't ajaxified (updated). Somewhere in the docs I read tht the AjaxManager can only ajaxify controls beneath itself and that controls on the masterpage cannot be ajaxified.
To me, it looks much more as if I made a mistake in the definition of the updated controls for the RadAjaxManager. Or isn't it possible to ajaxify a control on the masterpage even if the AjaxRequest (fired in the content page) is raised as expected in the master page? For example, when I call Response.Redirect in the AjaxRequest-Event, the page redirects to the specified URL.
Best regards,
Marco
my scenario looks as follows:
I have a masterpage containing a radtreeview inside a radpanel. This tree stores information about data assigned to a specific user. In one of my content pages (which is nested in the masterpage) I perform an operation in which the data assigned to the above called user is updated.
When this operation success I want to update the radtreeview on the masterpage. Thus, I did the following:
1.)
In the method which updates the data on the content page, I call
((RadAjaxManager)
this
.Master.FindControl(
"AjaxManagerMasterPage"
)).RaisePostBackEvent(
"MyCustomCommand"
);
2.)
On the masterpage, I have an AjaxManager (NOT a proxy!) which registers the AjaxRequest-Event:
OnAjaxRequest=
"AjaxManagerMasterPage_AjaxRequest"
3.)
In the code behind file of the master page I handle the event:
protected
void
AjaxManagerMasterPage_AjaxRequest(
object
sender, Telerik.Web.UI.AjaxRequestEventArgs e)
{
if
(e.Argument ==
"MyCustomCommand"
)
{
//Just an example
mainPanelBar.Items[5].Text = DateTime.Now.ToLongTimeString();
}
}
4.)
In the markup-file of the masterpage I defined the controls to be ajaxyfied as follows:
<
telerik:AjaxSetting
AjaxControlID
=
"AjaxManagerMasterPage"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"mainPanelBar"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"anotherControl"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
The event fires as expected, but the tree view on the masterpage isn't ajaxified (updated). Somewhere in the docs I read tht the AjaxManager can only ajaxify controls beneath itself and that controls on the masterpage cannot be ajaxified.
To me, it looks much more as if I made a mistake in the definition of the updated controls for the RadAjaxManager. Or isn't it possible to ajaxify a control on the masterpage even if the AjaxRequest (fired in the content page) is raised as expected in the master page? For example, when I call Response.Redirect in the AjaxRequest-Event, the page redirects to the specified URL.
Best regards,
Marco