Hello,
I am using a UltraCombo to display a list of names in a drop down grid as matched by user input using AutoCompleteMode = Suggest. Due to the extremely large amount of names, I am populating the DataSource after the 3rd character typed from a web service. What I would like to do is keep the drop down list (grid with name details) visible at all times so that the user can see when data is available from an asyncronous call, or that there are no matches to thier input. When I enter the UltraCombo, I call ToggleDropDown() to display the empty drop down grid and then as data is available from the web service, it shows up in the list after I set the DataSource, which is exactly what I want so far. The problem is that if I backspace and change the text to something not in the newly populated list, the drop down disappears, and when new data is set to the UltraCombo's DataSource, its not visible to the user. If I call ToggleDropDown() when I get a set the DataSource,it shows the grid but it highlights the text input, which the user could still by typing, and could then type over thier existing text. Is there a way to keep the drop down visible at all times as long as the UltraCombo has the focus?
Thanks for the help,
Rob
I am not in luck since my version of Infragistics is from 2008. But I think Mike's tip will help me, with this workaround I should get my multi select combo box ! :)
If you are using version 2009 Volume 1 and later you can take advantage of the
CheckedListSettings property off UltraCombo. Also you will need to set the
CheckedListSettings.ItemCheckArea property to Item, so that the drop down list does not close when an item is being clicked. By default, the ItemCheckArea property is set to Checkbox.
What version of the controls are you using? We added multi-select support to the combo a few volume release ago via the CheckListSettings property.
NetAdvantage® WindowsForms Online Help :: 2010.1
If you don't have that property on your UltraCombo, then you are probably using an older version, in which case, you might want to check out this KB article, which shows you how to do it the old (more difficult) way:
HOWTO:Creating a Multi-Select Dropdown Combo for the WinGrid
Hi Mike,
ok I think I have to explain my point a little better, so forget what I wrote before... :)
I have an UltraCombo drop down with a list of selectable items. The problem is: the drop down list closes every time I click on an item. What I actually want is that I can select several items and only then choose to close the drop down.
Since it does not seem to be possible to keep the drop down list visible by a setting of the control, I am trying to figure out a way to reopen the list as soon as it closes up. But I could not make it with an event like AfterCloseUp, the function toggleDropDown seems to have no effect.
So my actual question is : is it only possible to "Keep UltraCombo drop down list visible" ?
Hi
It looks like we may have been having a problem with our forums at the time you posted here, so I never got a notification of your post.
Anyway... I'm a little lost on what your question is. You are not sure how to hook an event on a control? This is one of the simplest and most basic things you can do when programming in Visual Studio and you would hardly be able to write even the simplest application without know how to do this, so I'm sure I must be misunderstanding the question. :)