AJAX Manager Control Hierarchy

5 posts, 0 answers
  1. ADe
    ADe avatar
    42 posts
    Member since:
    Jul 2008

    Posted 20 Jul 2008 Link to this post

    Is there a Hierarchy with the controls that can be linked to one-another?

    The reason I ask is because I have a RadSplitter that contains 2 RadPanes separated by a RadSplitBar. The first RadPane (left) contains a RadTreeView control and when the user clicks a node in the tree I want to change the ContentURL of the second RadPane (right).

    The problem occurs when I add a RadAjaxManager and in the first pane I select the RadTreeView as the control I want to initiate the callback. I then select the second RadPane as the receiver.

    When the user clicks a node in the tree the following error pops up,

    Sys.InvalidOperationException: Could not find UpdatePanel with ID 'ctl00_ctl00_ContentPlaceHolder_radPaneContentPanel'. If it is being updated dynamically then it must be inside another UpdatePanel.

    I was wondering if it was the hierarchy causing the problem as in the RadPane receiving the callback is one level above the RadTreeView initiating it in terms of the control hierarchy,

     - radSplitter
          - radPaneNavigation
               - radTreeView
          - radSplitBar
          - radPaneContent

    If it's not that then could someone please explain what the hell is going on...?

    To get around the problem I even tried to setup the XJAXing programatically directly on the tree nodes themselves when I dynamically create them but that didn't seem to work at all and I've opened another thread on that topic (Configuring RadAjaxManager Programatically).

    One of these ways has to work. Am I doing something really stupid???
  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 21 Jul 2008 Link to this post

    Hello ADe,

    RadSlidingPane, RadPane, and RadSplitBar controls can not be updated directly with an Ajax Manager control.
    When you want to update the content of a RadPane (or RadSlidingPane) control, just add an asp:Panel control (or any other container control that runs on the server) inside the pane and update the panel instead the RadPane (or RadSlidingPane).

    Regards,
    Maria Ilieva
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. ADe
    ADe avatar
    42 posts
    Member since:
    Jul 2008

    Posted 21 Jul 2008 Link to this post

    Nope, still get the same error (obviously the ID is different).
  5. John Snyder
    John Snyder avatar
    43 posts
    Member since:
    Mar 2006

    Posted 10 Nov 2008 Link to this post

    Maria,

    You said that the "RadSlidingPane, RadPane, and RadSplitBar controls can not be updated directly with an Ajax Manager control".  Why is this?  I have a page that when I click a button I want to modify the behaviors of these controls.  Is my only option to reload the page and load them properly the first time the page loads?

    For a little more background, I have the following architecture:
    Splitter
        RadPane
        RadSplitBar
        RadPane

    In some situations I want the RadPane to be collapsed and other times I want it expanded.  At the same time I sometimes want the SplitBar's mode to be none and other times I want it to be forward.  This purely depends on what I am doing on the page.  I wanted to change these properties when I click the button without having to reload the page.

    This seems very odd to me and I would love to know why this is and if there is a plan to change it.

    Dustin
  6. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 10 Nov 2008 Link to this post

    Hi Dustin DeFoe,

    Please refer to the following help topic which elaborates on this matter. Review the provided approach and let us know if this helps.

    All the best,
    Maria Ilieva
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017