ASPxClientComboBox.RemoveItemCssClass(index, className) Method
Removes the CSS class from a combo box item specified by its index.
Declaration
RemoveItemCssClass(
index: number,
className: string
): void
Parameters
Name | Type | Description |
---|---|---|
index | number | The item’s index. |
className | string | A string value specifying the CSS class name. |
Remarks
To customize the item’s style settings, use the editor’s client-side AddItemCssClass(index, className) and RemoveItemCssClass(index, className)
methods.
function onSelectedIndexChanged(sender, target) {
if (sender.PrevIndex != undefined) {
target.SetItemTooltip(sender.PrevIndex, "");
target.RemoveItemCssClass(sender.PrevIndex, "MySelectedItem");
}
target.SetItemTooltip(sender.GetSelectedIndex(), "This item is selected in another combobox");
target.AddItemCssClass(sender.GetSelectedIndex(), "MySelectedItem");
sender.PrevIndex = sender.GetSelectedIndex();
}
See Also