Grid's RadToolTip doesn't fire after clicking a new tab

3 posts, 1 answers
  1. Robert Helm
    Robert Helm avatar
    54 posts
    Member since:
    Feb 2009

    Posted 24 Sep 2012 Link to this post

    I have a page that has multiple tabs using the telerik:RadMultiPage and RadTabStrip controls. 
    Those tabs are user controls and some have RadGrids, which uses a RadRadToolipManager control to fire a page as a menu.
    This works fine from tab to tab. However, it appears that once one tab is loaded and its corresponding grid's toolip is loaded, the previous tab's grid's tooltips no longer fire.

    Each tab's tooltip gets wrired up in its RadGrid's ItemDataBound event, of course.
    Then The RadToolTipManager's OnAjaxUpdate and UpdateToolTip methods get called.

    Again, everything works fine, and when a new tab is clicked its grid tooltip fires fine, but, the previous tab's grid's tooltips doesn't fire if I were to go back and try it.

    Addendum:
    I noticed that when I click a new tab, the Page_Load of the previously clicked tabs will fire. In the Page_Load of each tab, I have the code:  this.RadToolTipManager2.TargetControls.Clear();

    I have this because when the tab's grid is sorted, I have to clear the target controls lest they maintain the wrong data. At least that is the solution I came up with.

    So, now I may pose the question, is my solution above (maintain tooltip integrity on a grid sort) the right one? If not, I could remove it ( thus solving my current problem) and implement it the correct way.

    Thanks for any info.






  2. Answer
    Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 25 Sep 2012 Link to this post

    Hello Robert,

    The correct place to clear targets for a manager that tooltipifies a grid is the corresponding grid events, as shown in this online demo: http://demos.telerik.com/aspnet-ajax/tooltip/examples/targetcontrolsandajax/defaultcs.aspx?product=tooltip. Thus, I believe, you can remove the call to Clear() in Page_Load and get the desired functionality working.

    You may also want to take a look at your multipage configuration, if you have set the RenderSelectedPageOnly property to true this can cause the reload. You can try setting it to false to render all content from the beginning and allow for caching (i.e. only the visibility will be toggled). You would also need to set the AutoPostBack property of the tabstrip to false.



    Greetings,
    Marin Bratanov
    the Telerik team
    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 their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Robert Helm
    Robert Helm avatar
    54 posts
    Member since:
    Feb 2009

    Posted 25 Sep 2012 Link to this post

    Thanks Marin,

    Moving the Clear() code to the ItemCommand events and out of the Page_Load() fixed the problem for all tabs but one. I'm sure I have something else messed up with that one though, so I'm marking this as the answer.

    Thanks again.
Back to Top