Ticket Q203226
Visible to All Users

populate combobox on fly in gridview

created 16 years ago

i have two comboboxes inside edititem templete of a gridview. the 2nd combo's content is depending on the selection of 1st combo. I hve it working with gridview performcallback and OnCustomJSProperties. anyway, it works perfert until i convert my project from 8.3.4 to 9.1.3 today. It is not working anymore. can you please give me a sample to show me how to do it in 9.1.3. Thanks.
Yihuey

Show previous comments (5)

    Thanks for fixing my SIMPLIFIED sample project. I could try to apply your method to my real life project which is more complicate than the sample. But the reason to put the SAMPLE project together is to provide you a SIMPLIFIED case to see the problem, hoping you can find the root of the problem. And I believe the project I sent to you fullfill its purpose. I suspect a problem in gridview callback behavior in 8.3.6 and above. Because I have another page also use callback function of the gridview that has nothing to do with comboboxes. And it stop working in 9.1.3 too. I hope if you can use the project attached and fix the root of the problem, then all of my 9.1.3 version problem will be fixed. I believe that as a software support, you should be able to run your product in any version. If you need 8.3.4 installer, I can send it to you.
    Thanks,
    Yihuey

    Serge (DevExpress Support) 16 years ago

      Dear Yihuey,
      We apologize for the confusion. Alistair wasn't quite correct when saying that he didn't have capability to install an older build. Of course, we store all builds of our products and can set up the necessary configuration with any build. He just wanted to ask you to migrate to a newer build because we can easily solve possible bugs in them, and immediately provide you with patched daily builds, if needed.
      Azret just told me you've already migrated to v2009 vol 1.3, right? As far as I recall, there are some differences in the behavior of our list controls between v2008 vol 3 and v2009 vol 1. For example, take a look at the report ASPxListBox - Updating the items collection on the client side results in an "Object reference not set" exception if the view state is disabled.
      We'll test your samples with v2008 vol 3.4 and v2009 vol 1.3 to see the difference in their behavior. This will help us provide you with a better solution.
      Thanks for your patience.
      Regards,
      Serge

      DevExpress Support Team 16 years ago

        Hello,
        We've investigated the problem further. Indeed, the grid's behavior has been changed between version 8.3.4 and 8.3.5 as a result of fixing issue B134036.
        Now it's necessary to manually rebind controls after changing or setting their data source, like in the demo project, which I sent to you in my previous message.
        Regards,
        Alistair

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.