Skip to main content

ASPxClientComboBox.SetItemTooltip(index, tooltip) Method

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

Declaration

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

Parameters

Name Type Description
index number

The item’s index.

tooltip string

A string value specifying the tooltip text.

Remarks

Online Example

View Example: How to customize an item's appearance

Example

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

ASPxComboBox-SetItemTooltip

<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');
        }                
    }" />
    <Columns>
        <dx:ListBoxColumn FieldName="ProductName" />
    </Columns>
</dx:ASPxComboBox>
See Also