ASPxClientComboBox.SetItemAttribute(index, attributeName, attributeValue) Method
In This Article
Adds a custom attribute to a combo box item.
#Declaration
TypeScript
SetItemAttribute(
index: number,
attributeName: string,
attributeValue: string
): void
#Parameters
Name | Type | Description |
---|---|---|
index | number | The item index. |
attribute |
string | The attribute name. |
attribute |
string | The attribute value. |
#Remarks
<dx:ASPxComboBox ID="ASPxComboBox2" runat="server" DataSourceID="DataSource1"
ClientInstanceName="comboBox" TextField="ProductName" ValueField="ProductName" />
<br />
<dx:ASPxButton ID="ASPxButton1" runat="server" AutoPostBack="False" Text="Set Attribute" >
<ClientSideEvents Click="OnClick" />
</dx:ASPxButton>
See Also