Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
180
dynamic more Items in UltraCombo
posted

Hi

I am getting data to my ultracombo from a webservice.

There are some 50,000 records but we sensibly provide a most recently used subset and dynamically

filter as the user is typing.

If the user does not see the entry they want, we want a mechanism whereby they can reqest more data.

I've tried a few options none of which i cant get working

1. Catch the scroll event and if the scrollbar is at the bottom more data will be requested similar to when you search for images in google and start scrolling down.

this doesnt work because there doesnt seem to be any event to figure this out and SPY++ shows that the WM_VSCROLL event isnt being sent.. Adding a WndProc handler shows the same.

2.Add a fake summary row with a hard coded "Click for more" text and catch the mouse click event.

Again there is no event handler and SPY++ shows no mouse click events are being sent

3. Add a fake row at the end with hard coded "Click for more"

Still no mouse click events so the only (hacky) way I can find is to catch the value changed event and

see if the text is "Click for more" but after that the drop down closes. calling Toggle drop down in that event handler is too early and it closes afterwards.

Also for this solution I would need to merge the multiple columns in this row somehow or do a custom paint over it.

I hope you get what I am tryong to acheive, any nice solution will do.

thanks

Michael