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

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

tooltip string

A string value specifying the tooltip text.

Examples

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