Custom Edit Template Data json Server delay

2 posts, 0 answers
  1. Markus
    Markus avatar
    71 posts
    Member since:
    Jan 2015

    Posted 25 Feb 2015 Link to this post


    I have following example:

    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-source=kontaktdata     <----------------

    Many thanks
  2. Georgi Krustev
    Georgi Krustev avatar
    3747 posts

    Posted 27 Feb 2015 Link to this post

    Hello Markus,

    If you would like to bind the widget asynchronously, then you will need to set the data source instance and then to add the new data to it. Check the updated Dojo demo.

    Georgi Krustev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top