Hi
I have following example: http://dojo.telerik.com/IqIYI/2
In the example there is a custom edit template when you double click on the calendar to make a new event.
There is a container for "Contacts" which has an array as data-source.
When I open the page I have to get data from the server (which takes 1-2 seconds -> simulated in the example via setTimeout function). Because this takes a few seconds it seems that the template does not catch the data properly - hence the field having no data in the popup template.
How can I "load" data into the edit template or deffer its creation?
<div data-container-for="Contact" class="k-edit-field">
<select id="Contact" multiple="multiple" name="Contact"
data-role="multiselect"
data-bind="value:Contact"
data-source=kontaktdata <----------------
data-text-field="text"
data-value-field="value"
data-value-primitive="true"
></select>
</div>
Many thanks
I have following example: http://dojo.telerik.com/IqIYI/2
In the example there is a custom edit template when you double click on the calendar to make a new event.
There is a container for "Contacts" which has an array as data-source.
When I open the page I have to get data from the server (which takes 1-2 seconds -> simulated in the example via setTimeout function). Because this takes a few seconds it seems that the template does not catch the data properly - hence the field having no data in the popup template.
How can I "load" data into the edit template or deffer its creation?
<div data-container-for="Contact" class="k-edit-field">
<select id="Contact" multiple="multiple" name="Contact"
data-role="multiselect"
data-bind="value:Contact"
data-source=kontaktdata <----------------
data-text-field="text"
data-value-field="value"
data-value-primitive="true"
></select>
</div>
Many thanks