Hi,
I am using Infr. winforms version 10.1, and I am using the UltraComboEditor, as and editor when people wants to lookup address infomation from a very large Address Database. In order not to slow down any respons behaviors, we only return the top 10 hits, when entering the criteria. To make that visible to the end user we would like to show that only the top 10 hits is shown in a sort of statusbar item when the result (the combo is expanded) is shown.
Are there any easy way of attaching a statusbar to the expanded UltraComboEditor? Or do you have any other best practices on how to achieve our goal?
Best regards
Dennis Tycho Nielsen
Hi Mike,
I have been thinking about approach no. 1, but, as you also mention, discarded that because of scrolling down side.
We have already made our own customized version of UltraComboEditor, so I think I will aim for the 3. approach. And enhance that a bit.
Thanks for the answer!
Hi Tycho,
I don't think there is any really easy way to do this, but it seems like it should be possible if you want to work at it. :)
There are a few approaches you might take:
1) You could add an extra item to the bottom of the list and then try to prevent the user from selecting this item - maybe by disabling it via the UIElements. The down side of this approach is that the item will scroll.
2) You could try to use a CreationFilter to add a bar of text at the bottom of the dropdown list. This would be fairly easy to do, but the tricky part is that the ValueList will now know about this extra bar and so it won't be able to account for it while scrolling. So I don't think this would work for UltraComboEditor, but it might be possible to do this with UltraCombo, since you could use ScrollBounds to allow it to scroll all the way to the top.
3) You could write your own dropdown using either UltraComboEditor or UltraTextEditor with a DropDownEditorButton in the ButtonsRight collection. This option is almost certainly possible, but it requires a lot of coding, since you have to handle what happens when you click on an item in the list and you have to create a UserControl with a list control (such as UltraListView) and a StatusBar.