When calling ASPxClientComboBox.AddItem() I get an error in the _aspxRemoveAttribute function, that obj is null.
I’ve traced it to the CreateNewItem function, which never returns a result.
My combo box starts unpopulated, and I’m trying to add items on the client side, but I got the same error when trying to add items to a combo box with items already added from the server side.
This is using the v2011 vol 2.5 release.
EDIT
Here is the combo box markup:
<dx:ASPxComboBox ID="txtCountry" runat="server" Width="95%" data-bind="dxDataBind: Countries, keyMember: 'Id', displayMember: 'Name', SelectedKey: CountryId">
<ValidationSettings>
<RequiredField IsRequired="True" ErrorText="Country required" />
</ValidationSettings>
</dx:ASPxComboBox>
The data-bind attribute is part of KnockoutJS, which I am attempting to adapt to bind to other controls.
Essentially at the moment I’m just trying to add an item to an empty combo box on the client side, with two string parameters.
Specify the ASPxComboBox.ClientInstanceName property to enable the control’s client-side programmatic object and use the client-side AddItem method as follows: