how do I make it so that I can't choose the option 'none' from a resource in the scheduler?
3 Answers, 1 is accepted
answered on 28 Aug 2015, 08:53 AM
The 'none' option is set as option label for the DropDownList in order to have the event model a default value for the resourceId field (when create a new event).
My suggestion in this case would be using the custom editor template. The editor template of the Scheduler can be defined manually using the template option. Here is a code library which shows how to define a custom editor template.
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Have you got any examples that use plain JS or perhaps PHP? I'm having a bit of a problem translating the template to something I can use.
I also noticed when I tried to make my own multiselect, that I couldn't set the initial values. Do I need to do anything special to have the values from the model preselected in the template?
answered on 02 Sep 2015, 07:38 AM
Also in the example a Kendo UI MultiSelect widget is used in order to select attendees for the current event. The widget's value is bound to Attendees model field. It preselects the selected Attendees for the event and also and change the model field by using: