Kendo Dropdown option label and field names and lazy loading of data

Skip to first unread message

Haritos Hatzidimitriou

Mar 4, 2021, 9:30:53 AMMar 4
to wicket-jquery-ui

I'm currently trying to use the (lazy) Kendo DropDownList (not sure what the difference is with the non lazy). And there a couple of things I need and I'm not sure how to implement

1. I need to specify the 'select option' text (Kendo calls it the optionLabel ) 
2. I need to have titles for my elements (code, description)
3. Ideally I would like to load my data only before rendering and not having to provide them in the constructor.

So the end result should look like this: 


Any pointers as to how I should implement the above?
The 3rd one seems the most tricky, but 1 & 2 should be doable without much code I imagine. When I can get it to work I will be happy to provide the enhanced dropdown to the community via PR.

Thank you in advance!

Haritos Hatzidimitriou

Mar 4, 2021, 9:40:37 AMMar 4
to wicket-jquery-ui
Still Using Wicket-Kendo 7.10.0 by the way. 

Message has been deleted

Haritos Hatzidimitriou

Mar 6, 2021, 8:05:20 AMMar 6
to wicket-jquery-ui
Ok After some further digging it looks like Kendo Dropdown has elements called scriptTemplate, headerTemplate, footerTemplate and noDataTemplate (all of them of type="text/x-kendo-template")
to handle the list of data, the header etc. So I assume I have to use (and extend) the KendoTemplateBehavior class but I'm not really sure how to do it and how to tie everything together...

Here is a Dojo of how it all works:
Reply all
Reply to author
0 new messages