Skip to main content

ASPxClientComboBox.SetItemAttribute(index, attributeName, attributeValue) Method

Adds a custom attribute to a combo box item.

Declaration

SetItemAttribute(
    index: number,
    attributeName: string,
    attributeValue: string
): void

Parameters

Name Type Description
index number

The item index.

attributeName string

The attribute name.

attributeValue 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