Searchable Dropdown

28 views
Skip to first unread message

Dominik Spies

unread,
Jun 2, 2020, 6:03:22 AM6/2/20
to wicket-jquery-ui
I'm trying to add a searchable dropdown menu to my wicket application. 
I've seen that the native JQuery version of Kendo UI has support for this feature (https://docs.telerik.com/kendo-ui/api/javascript/ui/dropdownlist/events/filtering)
How would I set this up from the java/wicket side?

Thank you
- Dominik

Sebastien

unread,
Jun 3, 2020, 5:18:06 AM6/3/20
to wicket-j...@googlegroups.com

Hi Dominik, basically this should be an option to set. Either via the construction 'options' (if any) or via onConfigure(JQueryBehavior). I'll try to have a look later tonight.
You can have a look at the source code in GitHub for "options.set" or setOption...

Sebastien

unread,
Jun 13, 2020, 1:29:31 AM6/13/20
to wicket-j...@googlegroups.com
Hi Dominik,

You can set the option like this:

@Override
public void onConfigure(JQueryBehavior behavior)
{
super.onConfigure(behavior);
behavior.setOption("filter", Options.asString("startswith"));
}

Best regards,
Sebastien.
Reply all
Reply to author
Forward
0 new messages