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

Can you use RadToolTip on a single RadComboBoxItem

2 Answers 68 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 2
James asked on 20 Jan 2009, 11:47 AM
Has anybody succesfully managed to place a RadToolTip control onto a RadComboBoxItem?

I can see that you can set a ToopTip for a RadComboBoxItem however I would like to make a custom ToolTip that contains an image. I only want this to appear on several RadComboBoxItems in my item list.

I've read several posts that utilise the TargetControlID of the RadToolTip control however I've enceountered 2 problems with this method.

1. I cannot set an ID attribute on a RadComboBoxItem (to target)
2. When using TargetControlID='<%# this.RadComboBox1.ClientID + "_Input" %>' I always get a compile error saying - Name 'this' is not declared (This might be because I'm using vb.net? )

I'm assuming TargetControlID='<%# this.RadComboBox1.ClientID + "_Input" %> would be wrong approach anyway as It looks like that targets the whole combo box control and not just an indivual item.

Any ideas if this is possible and how one might achieve it?

Kind Regards
James

 

 

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Svetlina Anati
Telerik team
answered on 20 Jan 2009, 01:56 PM
Hi James,

I am not quite sure about your exact idea and approach but since you are using server code and VB you should use the keyword Me instead of this.

I suggest to examine another approach for tooltipifying a RadComboBox which is easier. In order to achieve the desired behavior you should simply put a RadToolTip control in the Item Template of the RadComboBox as explained in this article.


Regards,
Svetlina
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
James
Top achievements
Rank 2
answered on 20 Jan 2009, 03:46 PM
Yes, I've tried this and it works great.

A much nicer approach to the problem and means I have even more control of how the contents of the RadComboBox are rendered.

Thank you for the advice.
Tags
ToolTip
Asked by
James
Top achievements
Rank 2
Answers by
Svetlina Anati
Telerik team
James
Top achievements
Rank 2
Share this question
or