Hello,
I am trying to populate a combobox based on the value of another combobox. I have been through the demos E1358, E1362, and E1346 as well as the Populate Combobox on the Fly demo. The problem is none of them handle the Filter Row properly. Could you help me with fixing the filter row so it functions like the edit rows?
Thanks,
Jeff Short
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.
Hello Jeff,
I've created a small example which should help you implement a similar solution in your report. By the way, can I make our conversation public, so other users can use my example?
Thanks,
Vest
Vest,
Thanks for the example. I have not tried it yet but I wanted to let you know that you may make our conversation public.
Thanks,
Jeff
Hello Jeff,
Please try my example, and let me know if it satisfies your requirements.
Thanks,
Vest
See also:
112
Hello Vest,
I just looked at E112 and it uses a totally different method than the Q155269.zip file. The Q155269.zip solution has the following problems:
1. Selecting a Country automatically selects the first City in the Cities combobox but it only filters on the Country selection. So the filter is acting like the City combobox is blank which it should be.
2. Selecting a City does filter on the City seletion but then the Cities Combobox text changes back to the first City in the list.
The E112 solution does not suffer from either of these problems. However, I need to have the same cascading comboboxes in Edit Mode and with the Clear Filter Button. The E112 solution has the following problems when I enabled editing and enabled the Clear Filter Button:
1. Select a Country in the Filter then clear the Filter. The City combobox in the Filter is still populated (because we didn't change the session variable).
2. Now edit one of the rows and the City combobox in the Edit Form is populated with the cities from the Country originally selected in the Filter in problem 1 (again because we didn't change the session variable).
It seems like a few more events (like entering edit mode and when Clear Filte click) need to change the session variable. What is the best way to handle these problems? I also need to have updating enabled; will there be problems with that? Will more events need to be handled?
Thanks,
Jeff
Hello Jeff,
Thank you for the detailed feedback. Yes, I know that my example might not work properly for the filter row. Actually it is hard to implement cascaded comboboxes in the filter row. You should always concern about the following situations:
Every page callback, or grid's callbacks recreates the page hierarchy. That is why my solution might not work completely :(
Maybe you can try the attached example, and if the filtering works fine simply implement the cascaded feature via ASPxComboBox controls within templates.
Thanks,
Vest