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
Example
The following example illustrates how to specify a tooltip for combo box items using the ASPxClientComboBox.SetItemTooltip
method.
<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