RadAjaxPanel - RadToolTipManager and usercontrol

2 posts, 0 answers
  1. jc mag
    jc mag avatar
    106 posts
    Member since:
    Aug 2005

    Posted 08 Mar 2011 Link to this post

    I have a RadTreeview and I display a RadTooltip on its nodes using a RadTooltipManager:

    <telerik:RadTreeView ID="treeSubBooks" runat="server" Skin="WebBlue" AllowNodeEditing="false"
                        EnableDragAndDrop="false" OnNodeClick="tree_NodeClick" Width="240px">
                     <telerik:RadToolTipManager ID="rttmSubBooks" Height="300px" Width="250px"
                        HideEvent="ManualClose" RelativeTo="Element" Position="MiddleLeft"
                        runat="server" ShowDelay="500" Skin="Telerik" EnableShadow="true" Animation="Fade"

    The tooltip displays a usercontrol:
    protected void rttmSubBooks_AjaxUpdate(object sender, ToolTipUpdateEventArgs e)
            Control ctrl = LoadControl("~/UserControls/ucTooltipTreeviewBook.ascx");
            var iuser = (IUserControl)ctrl;
            iuser.Parameter = e.Value;
            var action = (ITooltipTreeviewAction)ctrl;
            action.Action += tooltip_action;
        private void tooltip_action(object sender, TooltipTreeviewEventArgs e)
            buildSubBooks(e.Action, e.BookName);

    In the ucTooltipTreeviewBook usercontrol there is a LinkButton that executes the "Action" event, then my buildSubBooks method is called and the treeview nodes are updated.
    All of that is included in a RadAjaxPanel.

    Now the problem is that the page is not refreshed when I click on the LinkButton in the tooltip. But if I click on another LinkButton in the page, the RadTreeview is well updated (with the buildSubBooks modifications).
    Is it because the usercontrol is loaded dynamically and the RadAjaxPanel doesn't know it? Or did I do something wrong?

  2. Svetlina Anati
    Svetlina Anati avatar
    2795 posts

    Posted 11 Mar 2011 Link to this post

    Hello jc mag,

     As far as I understand you have the treeview inside the ajax panel and you want to update it on some event fired from inside the tooltip. If so, please note that when the OnAjaxUpdate event is used (as in your case) the content of the tooltip is inside a built-in update panel (which is used to load the content through AJAX) and in such case only the content of that update panel is updated and not the rest of the page.

    What I suggest is to replace the ajax panel with a standard asp update panel with UpdateMode="Conditional". At the desired event, when you want to update the main page tree, call the Update() method of the update panel - this will update its content as well.

    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Back to Top