Skip to main content

ASPxClientListBox.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

The item’s index.

textCellIndex number

The index of the item’s text cell.

tooltip string

A string value specifying the tooltip text.

Example

The following example illustrates how to specify a tooltip for a list box item’s text cell using the ASPxClientListBox.SetItemTextCellTooltip method.

<dx:ASPxListBox ID="ASPxListBox1" ClientInstanceName="clientListBox" runat="server" 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 < clientListBox.GetItemCount(); i++){
        clientListBox.SetItemTextCellTooltip(i,1, '<' + clientListBox.GetItem(i).GetColumnText(1) + '>' + ' tooltip');
    }
}" />
</dx:ASPxListBox>
See Also