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

Show tooltip for Radcombobox

1 Answer 99 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Meng
Top achievements
Rank 1
Meng asked on 26 Jun 2014, 02:44 PM
Hi there,

The item text for my RadCombobox is too long, so it only displays part of it. Is it possible to show a tooltip displaying the full item text for the Combobox when the  mouse is over it? I need this to be done using javascript, not from the code behind. Any suggestions is much appriecated.

Regards,
Meng

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 27 Jun 2014, 04:35 AM
Hi Meng,

Please try the below JavaScript code snippet to show the tool tip for the RadComboBoxItem.

JavaScript:
function pageLoad() {
    var comboBox = $find("<%=rcboOrders.ClientID%>");
    for (var i = 0; i < comboBox.get_items().get_count(); i++) {
        comboBox.get_items().getItem(i).get_element().title = comboBox.get_items().getItem(i).get_text();
    }
}

Thanks,
Shinu.
Tags
ComboBox
Asked by
Meng
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or