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 657643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:50:48+00:00 2026-05-13T22:50:48+00:00

I have a problem with a Dev Express component, namely AspxComboBox. My context is

  • 0

I have a problem with a Dev Express component, namely AspxComboBox.

My context is this: I want to dynamically generate the interface for some of my business entities. I have designed a user-control that receives some metadata and, based on that metadata, the controls adds text boxes, date-editors and combo boxes to the interface. All of those controls work like a charm when they are added to the page in a non-dynamic manner.
However, when I add them from the C# code, the following Javascript line has an error:

document.getElementById("usercontrol_combo_I").setAttribute("autocomplete", "off");

“usercontrol” is the ID of the user control I’m designing. “combo” is the ID of the combo.

The error is that the element with the ID (“usercontrol_combo_I”) is not to be found in the HTML DOM.

I’ve discovered that if I choose not to use DataBind on the combo itself (comment out any call to the DataBind() method of the AspxComboBox instance), the JS line that has the error is never rendered (is not present in the final HTML). But, if I leave it like that, any subsequent PostBacks empties the combo list (there are no more items in the combo). The datasource of the combo is a IList instance that is assigned on every page load (even if PostBack == true).

There is a post on DevExpress’s support forum that reports the same problem, but, there is no answer from the team.

Anybody here had this problem and found a way to solve it?

  • 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-13T22:50:49+00:00Added an answer on May 13, 2026 at 10:50 pm

    Actually, I’ve just found a simple workaround.
    If I just call DataBind() on my generated control in the page_load event of the page itself, the problem is gone.

    For example:

    protected void Page_Load(object sender, EventArgs e)
        {
            base.Page_Load();
            this.control.DataBind();
        }
    

    Where “control” is a UserControl that contains the combobox.
    The weird thing is that I call DataBind even on PostBack and CallBack.

    But, hey, it works.

    I suppose that there are still a couple more things that I miss when using Devexpress.
    But “practice makes perfect” !

    Thanks for the reply.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 529k
  • Answers 529k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer It's iterated logarithm. See here for a description of lots… May 16, 2026 at 11:19 pm
  • Editorial Team
    Editorial Team added an answer You can mix and match easily enough: public String handle(@RequestBody… May 16, 2026 at 11:19 pm
  • Editorial Team
    Editorial Team added an answer I notice that you've got the root of your layout… May 16, 2026 at 11:19 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I have this problem and it's drivin' me nuts! So I am developing my
I'm currently investigating a problem with a 3rd party component (DevExpress) in my application.
So I saw this question/comment... How to integrate SQL Server 2005 Express Edition to
I am trying out DevExpress Xtrareports, but have asimple problem that I am not
I have VS2010 and CodeRush Express installed on my machine. Occasionally I am hitting
I have a problem with a site I am redesigning and the problem is
I have a ASUS laptop with Fedora 13. My problem is that any USB
I am using the jQuery form validation plugin. The problem I have is that
I have a variable assignment problem inside the DOS script for loop. It never
I have a project using DevExpress docking components, I create forms in run-time, which

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.