Hi,
I have class that derives and extends from UltraComboEditor. It has 'Items' property of type ValueListItemsCollection that is used as multiselct control, there is around dosen of elements, number of showed items on dropdown is 8.
If i check any element, focus is reset and on first element in dropdown. I need to keep focus on checked/unchecked element.
I tried to implement it in OnSelectionChanged() - save index of selected item, (... here current implementation), set SelectedItemIndex with remembered value. But, when i set value of index, than it also fires SelectionChanged event and program recursively falls into OnSelectionChanged().
How can I make it so focus stays on last selected/unselected item of dropdown (scrolling to that item is also possible), even if that element is further in list (needs dropdown to scroll down)?
Hello Frank,
I followed the steps you suggested and was unable to reproduce the behavior you're describing. I have an UltraComboEditor with multi select enabled on it. However, when I check any element the focus is not reset on the first element. It stays on the last element selected.
There is a possibility of keeping the dropdown open and not change its focus until the selection is complete by setting UltraComboEditor ItemCheckArea property to Item. By adding the below line you can make UltraComboEditor behave in a way that clicking anywhere on the item changes the check state, and not close the dropdown until the enter/escape key is pressed:
this.ultraComboEditor1.CheckedListSettings.ItemCheckArea = ItemCheckArea.Item;
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 2017.1.20171.1000 in Infragistics for WindowsForms 2017 Vol1. 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.
Sincerely,Sahaja KokkalagaddaAssociate Software Developer
Hi, thank You for response.
Unfortunatelly property CheckedListSettings is not initialized (null). This property has no setter so it must be somehow initialized. I've tried with that, but it is still null:
((ISupportInitialize)this).BeginInit();
Code is propertiary so i cannot post it here, i could send it privately.
I have created a private case CAS-185358-K1W1J4 for Keep focus on selected item in multiselect list of UltraComboEditor issue. You can find this case under the SupportActivity tab when you log in to your account at Infragistics.com. You can use this case for your future correspondence.
Were you able to reproduce the mentioned behavior in the sample I provided? If not, please provide us a sample of your application with this issue reproduced in it. I will further look into this issue as soon as I receive this information.
Please let me know if you have any questions.
Unfortunatelly, i can't see such case in my Support Activity tab.
How can i send files not in public?