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

[Solved] RadToolTip + RadGrid, checkbox to show or not show tooltip

3 Answers 247 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Zyguy
Top achievements
Rank 1
Zyguy asked on 18 Jul 2009, 09:21 PM
I am using a RadToolTip inside the ItemTemplate of a RadGrid. Would like to have a checkbox that determines "show product mouseover previews".  What is the right method to have such a checkbox postback and show/hide the Grid tooltips based on what the user inputs? 

I have tried just declaring the 'RadToolTip1' and setting it's visibility depending on the checkbox status, however this does not seem to work, I am guessing because due to the fact the RadToolTip1 is inside the RadGrid Itemtemplate, the ID structure is more complex.

3 Answers, 1 is accepted

Sort by
0
Accepted
Svetlina Anati
Telerik team
answered on 22 Jul 2009, 12:38 PM
Hi Zyguy,

I am not completely sure I fully understood your scenario and how exactly you show the tooltips but in case you want to determine whether to show or not them you can hook up the OnClientBeforeShow event and check whether your checkbox is checked there. Depending on this you can prevent the tooltip from showing by using the args.set_cancel(true) syntax.

Let us know wether this works for you and in case it does not, please provide more details about your exact setup and requirements.

Regards,
Svetlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Zyguy
Top achievements
Rank 1
answered on 29 Jul 2009, 07:49 AM
Thanks that got me on the right track - here is the complete answer: http://www.telerik.com/community/forums/aspnet-ajax/tooltip/how-to-disable-radtooltip.aspx
0
Svetlina Anati
Telerik team
answered on 29 Jul 2009, 12:39 PM
Hi Zyguy,

I am glad I could help. In case you experience any further problems, do not hesitate to contact us again!

Kind regards,
Svetlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
ToolTip
Asked by
Zyguy
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Zyguy
Top achievements
Rank 1
Share this question
or