The requested page is not available for the requested platform. You are viewing the content for Default platform.

ASPxClientComboBox.SetItemTooltip(index, tooltip) Method

Sets the tooltip text for the combo box editor's item specified by its index.


SetItemTooltip(index: number, tooltip: string): void


Name Type Description
index number

An integer value specifying the zero-based index of the item.

tooltip string

A string value specifying the tooltip text.


The following example illustrates how to specify a tooltip for combo box items using the ASPxClientComboBox.SetItemTooltip method.


<dx:ASPxComboBox ID="ASPxComboBox1" runat="server" ClientInstanceName="clientComboBox" DataSourceID="SqlDataSource1">
    <ClientSideEvents Init="function(s, e) {
        for (i = 0 ; i < clientComboBox.GetItemCount(); i++){
            clientComboBox.SetItemTooltip(i, '<' + clientComboBox.GetItem(i).text + '>' + ' tooltip');
    }" />
        <dx:ListBoxColumn FieldName="ProductName" />
See Also