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
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.
Dear Yihuey,
It's difficult to give you a precise answer without checking your code. Perhaps there are other things involved at your end. Could you please supply us with a sample project demonstrating this problem? We can then take a look at it, and try to find a solution.
Thanks,
Serge
Two sample projests are included in ComboSample.zip. ComboOnFly is in v.8.3.4 and ComboFly9.1 is in v.9.1.3. It only has one gridview to display employee profiles. Each profile has a program and a location. The contents of location is depending on the selection of program combo. It works perfectly in 8.3.4. But with the same code after converted to 9.1.3, it quit working.
Thanks,
Yihuey
Hello Yihuey,
Thank you for the projects you provided to us. I tried to run both of your projects but their behavior in 8.3.6 and 9.1.3 is the same. There are two CodeCentral demos illustrating the desired functionality: How to use cascading comboboxes in an inline edit mode and <elxlink id="E1362"/>. They work perfectly in all versions starting from 8.3.4. I hope they will be useful.
Regards,
Alistair
I don't know about 8.3.6 cause I don't have that version. The project in 8.3.4 does behave differently from 9.1.3. It work perfectly, not like 9.1.3. Please re-run the project WITHOUT CONVERTING IT TO 8.3.6. I have my application on production as 8.3.4, no problem at all. We are now stuck in 8.3.4 because of this issue. And I can not use inline editing cause I need to put multiple comboboxes in one edit templete. So, please don't say that they behave the same so quickly. I spent whole morning to put this sample project together.
Thanks,
Yihuey
Hello,
Unfortunately I have no capability to install 8.3.4 instead of 8.3.6. Instead, I modified your code and now it runs perfectly in any version. I forced repopulating a Locations combobox on the creation an edit form and in the callback handler. Attached is a modified code for 9.1.
Regards,
Alistair
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
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
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