|
Re: Filter Combobox List [message #922863 is a reply to message #922689] |
Tue, 25 September 2012 12:03 |
Ivan Furnadjiev Messages: 2429 Registered: July 2009 Location: Sofia, Bulgaria |
Senior Member |
|
|
Hi Stefan,
Combo widget is not designed to handle huge amount of items. If you need
content filtering the JFace ContentProposalAdapter is the proper way to
go. It uses key events too together with a Text widget modify event, but
it's more optimized for content filtering.
HTH,
Ivan
On 9/25/2012 11:34 AM, Stefan M wrote:
> Hi,
>
> We are currently adapting our application to RAP.
> We have a custom combobox(dropdown) which supports filtering the list
> of values as you type and autocompletion.
> Currently this is implemented using standard SWT components, so there
> is a keylistener on the textfield and the listener updates the list
> according to the given input.
> As you can imagine, this shows bad performance in RAP since the
> keylistener events have to be processed on the server.
> I checked out other frameworks like vaadin, there the standard
> dropdown supports filtering out of the box.
> demo.vaadin.com/sampler#ComboBoxStartsWith (unfortunately i am not
> allowed to put here a real link because the forum wont let me ;))
> Is it planned to add this feature to the standard combo (maybe
> activated through some key in the setData(..) method like with the
> other non-SWT features)?
> It would help us very much since our application has very large
> combo-lists and otherwise we would have to implement a custom-native
> widget or wrap a javascript implementation of a combo which supports
> filtering.
>
> Thanks in advance
--
Ivan Furnadjiev
Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/
Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
|
|
|
Re: Filter Combobox List [message #931837 is a reply to message #922863] |
Wed, 03 October 2012 15:16 |
Stefan Milchram Messages: 33 Registered: September 2012 |
Member |
|
|
Thank you for your reply, but this solution does not solve the main problem.
As a combo has a predefiened list of items which normally do not change the whole filtering could occur in the browser.
I was a bit unclear about the number of items, the maximum is around 70.
Filtering the list as you type is a very good thing for usability, and most users dont want miss this feature once the had it. Even on Combos with < 10 items it is good for productivity as most of our entries can be identified after 4 character.
[Updated on: Wed, 03 October 2012 15:20] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02832 seconds