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

ASPxClientComboBox.SetItemTextCellTooltip(itemIndex, textCellIndex, tooltip) Method

Sets the tooltip text for the text cell of the editor's item specified by its index.

Declaration

SetItemTextCellTooltip(itemIndex: number, textCellIndex: number, tooltip: string): void

Parameters

Name Type Description
itemIndex number

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

textCellIndex number

An integer value specifying the zero-based index of the item's text cell.

tooltip string

A string value specifying the tooltip text.

Examples

The following example illustrates how to specify a tooltip for a combo box item's text cell using the ASPxClientComboBox.SetItemTextCellTooltip method.

<dx:ASPxComboBox ID="ASPxComboBox1" runat="server" ClientInstanceName="clientComboBox" DataSourceID="SqlDataSource1">
    <Columns>
        <dx:listboxcolumn FieldName="ContactName" />
        <dx:listboxcolumn FieldName="CompanyName" />
        <dx:listboxcolumn FieldName="Phone" />
    </Columns>
    <ClientSideEvents Init="function(s, e) {
        for (i = 0 ; i < clientComboBox.GetItemCount(); i++){
            clientComboBox.SetItemTextCellTooltip(i,1, '<' + clientComboBox.GetItem(i).GetColumnText(1) + '>' + ' tooltip');
        }
    }" />        
</dx:ASPxComboBox>
See Also