RadAjaxManager in nested control

2 posts, 0 answers
  1. Łukasz Kuryło
    Łukasz Kuryło avatar
    24 posts
    Member since:
    Jan 2010

    Posted 07 Jul 2013 Link to this post

    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)
    https://dl.dropboxusercontent.com/u/70221/sample2.rar (no additional ddls)
  2. Vasil
    Vasil avatar
    1642 posts

    Posted 11 Jul 2013 Link to this post

    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.

    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.
Back to Top