This is a migrated thread and some comments may be shown as answers.

RadAjaxManager in nested control

1 Answer 75 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Łukasz Kuryło
Top achievements
Rank 1
Łukasz Kuryło asked on 07 Jul 2013, 01:38 PM
Hi all.
I have a simple scenario. On left i have a radtreeview and on the right the content of the page. On page load in the content area i load a default usercontrol. When I click on node in the treeview, using radajaxmanger the content area is changed to some other user control. The problem is now that, when I have e.g. a radgrid on this user control (with radajaxmanagerproxy), I can't change e.g. page number, because the entire update panel is refresed to the default one view, which I load on page load.
I tried to disable the ChildrenAsTrigger attribute in the AjaxSettingCreated, but it results only in that, the updatepanel is not reloaded to the default view. Paging not working. How can I fix that?

A simple reproduction:
https://dl.dropboxusercontent.com/u/70221/sample.rar (includes telerik dlls to fast start, ~14mb)
or
https://dl.dropboxusercontent.com/u/70221/sample2.rar (no additional ddls)

1 Answer, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 11 Jul 2013, 10:25 AM
Hi Ɓukasz,

The problem is not in the Ajax, you can actually remove the Ajax manager, or set EnableAjax=false, and you will see that it behaves the same way.

The problem is that you reload the RichContent during click on the menu. And in case the post back is initiated from the grid, you don't add it. So if the post back is not from the menu, your grid is missing.

You need to always load the same user controls. But for example change their Visible property when they should not be visible.

Regards,
Vasil
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Ajax
Asked by
Łukasz Kuryło
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Share this question
or