Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7189575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:19:52+00:00 2026-05-28T19:19:52+00:00

When calling ASPxClientComboBox.AddItem() I get an error in the _aspxRemoveAttribute function, that obj is

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T19:19:54+00:00Added an answer on May 28, 2026 at 7:19 pm

    Specify the ASPxComboBox.ClientInstanceName property to enable the control’s client-side programmatic object and use the client-side AddItem method as follows:

    <dx:ASPxComboBox ID="txtCountry" runat="server" Width="95%" ClientInstanceName="cmb">
        <ValidationSettings>
            <RequiredField IsRequired="True" ErrorText="Country required" />
        </ValidationSettings>
    </dx:ASPxComboBox>
    <input type="button" value="Add Item" onclick="OnClick();" />
    
    <script type="text/javascript">
        function OnClick() {
            var text="Text1";
            var value="Value1";
    
            cmb.AddItem(text, value);
        }
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When calling the function cudaMemcpyToSymbol , I get Invalid value error ( cudaErrorInvalidValue ).
Calling Validate() on an XmlDocument requires passing in a ValidationEventHandler delegate. That event function
Calling IEnumSTATURL::Next within my application returns E_UNEXPECTED(0x8000FFFF) instead of S_OK . Sadly, that particular
Calling a function which takes the parameter as a reference with an array with
Calling an asp.net mvc3 controller method which returns the results fine (list of an
Calling this powershell command and getting an error. Driving me nuts. Prompt> get-childitem -recurse
Calling Html.RenderPartial(~/Views/Payments/MyControl.ascx); from a view works if MyControl.ascx is a control that directly inherits
When calling DirectoryInfo.GetDirectories(.) on an instance of a DirectoryInfo class which points to a
Calling concat on vectors returns a list. Being a total noob I would expect
Calling Index view is giving me this very very annoying error . Can anybody

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.