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