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

[Solved] Tooltip for Selected item in rad combo

9 Answers 119 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Awadh .
Top achievements
Rank 1
Awadh . asked on 19 Nov 2009, 06:17 AM
Hi,

I want to show tooltip for selected item in rad combo. I am binding the rad combo dynamically.

I found some post for tooltip for rad combo but they were not for the dynamic binding.



Thanks,
Awadh

9 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 20 Nov 2009, 11:47 AM
Hello Awadh .,

Can you please specify what do you mean by dynamic binding and post some of the involved code here? Can you refer to the post you have found? 

All the best,
Simon
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Awadh .
Top achievements
Rank 1
answered on 23 Nov 2009, 11:32 AM
Hi,

By dynamic binding , i mean to say, data items are being populated from the database.

Thanks,
Awadh
0
Simon
Telerik team
answered on 23 Nov 2009, 02:45 PM
Hi Awadh .,

Thank you for clarifying.

Can you please also confirm that you want to show a ToolTip for the selected Item and not the currently highlighted Item? Can you please explain in more detail the exact functionality you are trying to achieve?

Greetings,
Simon
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Awadh .
Top achievements
Rank 1
answered on 24 Nov 2009, 07:07 AM
Hi Simon,

Thanks for your reply.

In my requirement, I have to show tool tip for all the items in the rad combo.
I was able to display the tool tip for all items of asp data list control with same code on pre render event of the control. But when I am writing the same code for rad combo, its not working.

protected void ddlEndCustHQGUID_PreRender(object sender, EventArgs e) 
        { 
            foreach (RadComboBoxItem item in ddlEndCustHQGUID.Items) 
            { 
                item.Attributes.Add("title", item.Text.ToString()); 
            } 
        } 


Thanks,
Awadh



0
Simon
Telerik team
answered on 24 Nov 2009, 09:08 AM
Hello Awadh .,

This code works fine on my side - please see the attached page.

You could also set the ToolTip through the ToolTip property of Items:

foreach (RadComboBoxItem item in RadComboBox1.Items)
    item.ToolTip = item.Text;

Sincerely yours,
Simon
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Awadh .
Top achievements
Rank 1
answered on 24 Nov 2009, 10:27 AM
Hi Simon,

Thanks for your prompt response.
I used the tooltip property of the rad combo also but it did not help.
I applied breakpoint on pre render event of the rad combo, which is also not being hit. Similar event firing issue with rad combo I am also facing where selected index changed event is  not firing.

Any clues on these ? I have trial version of telerik controls installed on my dev machine. Is this has something to do with the issues I am facing.


Thanks,
Awadh
0
Simon
Telerik team
answered on 24 Nov 2009, 01:58 PM
Hi Awadh .,

The trial version is unrelated to the issue.

Please let me know how are you hooking the PreRender event handler - is it in code-behind or in the control's markup?

Best wishes,
Simon
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Awadh .
Top achievements
Rank 1
answered on 25 Nov 2009, 04:23 AM
Hi Simon,

The PreRender event handler is in code -behind file.


Thanks,
Awadh
0
Simon
Telerik team
answered on 25 Nov 2009, 09:05 AM
Hello Awadh .,

Please make sure you are properly subscribing to the respective event either declaratively (as shown here) or through code (as shown here).

Sincerely yours,
Simon
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
ComboBox
Asked by
Awadh .
Top achievements
Rank 1
Answers by
Simon
Telerik team
Awadh .
Top achievements
Rank 1
Share this question
or