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

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

2 Answers 60 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Robert Helm
Top achievements
Rank 1
Robert Helm asked on 24 Sep 2012, 03:35 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 25 Sep 2012, 10:37 AM
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.
0
Robert Helm
Top achievements
Rank 1
answered on 25 Sep 2012, 09:05 PM
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.
Tags
ToolTip
Asked by
Robert Helm
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Robert Helm
Top achievements
Rank 1
Share this question
or