How do I bind a DropDownList to a DataSource within an editor template using the scheduler?
I’m trying to customize my use of the Kendo UI kendoScheduler widget. I’m specifying a custom template for the editable window that pops up when you go to add/edit an appointment in the scheduler, like so:
I’m defining the template like this:
So now I want to add a Kendo UI DropDownList and configure it to populate from a remote datasource. How do you configure such things within a template?
Sample code (does not work):
The error it gives with the above code is:
Probably this is just a script encoding issue; I’m more interested in the proper way to place a bound DropDownList inside of a template.
Update – The latest simplified version of what I’m trying to do is available at this jsfiddle URL. The goal is simply to bind the dropdown list in the most straightforward way possible. Thanks!
If you move your scheduler DataSource into your
Now when you create the scheduler you just have it use the
The last piece is just changing your DropDownList declaration to use the
Since your template will be bound against the Observable objects in the