Good afternoon,
we are facing a problem with the UltraComboEditor when it contains checkable items.
What we've set up:
ultraComboEditor1:CheckedListSettings:CheckBoxStyle = Infragistics.Win.CheckStyle:CheckBox.ultraComboEditor1:CheckedListSettings:EditorValueSource = Infragistics.Win.EditorWithComboValueSource:CheckedItems.ultraComboEditor1:CheckedListSettings:ListSeparator = ",".ultraComboEditor1:DropDownStyle = Infragistics.Win.DropDownStyle:DropDownList.
After that we added two items. When we check the first one, the combo presents like that:
All fine. But when we check the second checkbox:
the text inside the comboeditor (not the dropdown) doesn't contains the textvalue of the last entry. This error is reproducable with any number of entries:
It's allways the last checked entry that seems to be ignored.
Has anyone any suggestions?
Kind regards
Hello Nico,
Thank you for posting to our forum.
I followed the code you suggested and was unable to reproduce the behavior you're describing.
I created a sample of ultraComboEditor and set up all the property you suggested. Now when I run the sample and selecting or deselecting the checkbox items from the list, it does update the combo text accordingly, also the last data entry.
I have attached the sample project I used to test this. Please test this project on your PC; whether or not it works correctly may help indicate the nature of this problem.
If the project does not work correctly, then the change in behavior is due to differences in your environment from mine and these differences can be anything from operating system version to the specific version of the Infragistics DLL versions used. My test was performed using version 18.1.20181.88. Please provide more details about your machine and version of the assemblies that you are referencing so that I can modify the environment that I am testing in to match yours.
If the project does show the product feature working correctly, then more information will be needed to reproduce the issue in a sample that can be used for debugging. It will help if you can provide a small, isolated sample application that demonstrates the behavior you are seeing. This can be done by either making the sample that I provided more like your application or by isolating the behavior from your application by removing dependencies on any third parties or databases.
Please let me know if I can provide any further assistance.
ComboCheckBoxItems.zip
Hi Divya,
we are using version 16.2.20162.2182 of Infragistics Controls on a windows 10, 64 bit operating system. Our development language is "progress openedge abl", that can reference and use .NET-code, but with some restrictions. So its for example hard for us to upgrade to the latest version of infragistic controls and impossible to upgrade to a .NET-version newer than 4.6.
But i created a testproject with the "same" code like yours and the reported error didn't occure. So i began digging deeper and i found our mistake. We use the ValueListItem()-constructor and set up the "DisplayText" and "CheckState"-properties, but not the "DataValue"-property. It's setup after adding the valueListItem to the comboEditor.
I modified your exampleproject and this error is reproducable in your code too. I attached this modified example. ComboCheckBoxItemsReproducable.zip
Now i know where the failure comes from, so i modified our code. Now anything works perfect. Thank you for your help and your testproject ;) .
Kind regards,
Nico