- I have a cell with editor cxImagemCombobox. But each row have different options for the combo. I do this using the onGetProperties. When user open the combo, show correct options, but when user go other row and open the combo, the value os prior row dont show. How can i do this?
Thanks
Alessandro
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 Alessandro,
The cause of the problem is that you are changing the instance of the column's properties object directly. However, other cells within the same column are referring to the same instance of the ImageComboBoxProperties object. As a result, when you change the existing Properties object other cells are refreshed and become empty because the current EditRepositoryImageComboBoxItem.Items collection doesn't contain the necessary items. To resolve the problem you will need to create three separate TcxEditRepositoryImageComboBoxItem objects using the TcxEditRepository component and pass the necessary EditRepositoryImageComboBoxItem within the OnGetProperties event handler. I have slightly modified your sample so it works as expected now. Please review it and inform me whether this approach suits your needs.
Thanks,
Stan.