sync an element after create was called

2 posts, 0 answers
  1. Maxim
    Maxim avatar
    63 posts
    Member since:
    Mar 2007

    Posted 28 Nov 2012 Link to this post

    Hi,

    Is there a way to sync an element after create was called?
    EX: In edit or update there are only a number of field that are actually set by user the rest are only information. While displaying editor I do not want to pull reference information however the new value returned from controller is being ignores.
    // I have a data source defined
    Workbench = new kendo.data.DataSource({
        transport: {
            create: {
                url: "/api/workbench",
                type: "POST"
            }
        }
    })
    // I add a new object to Data source
    Workbench.add({...});
    // and call sync the action on workbench
    // controller returns a new object with id and other
    // properties set however I think the return is being
    // ignored
    Workbench.sync();
  2. Rosen
    Admin
    Rosen avatar
    3253 posts

    Posted 29 Nov 2012 Link to this post

    Hello Maxim,

    I'm afraid that it is not obvious what might be the cause for the described behavior from the provided details. Please take a look at this test page, maybe I'm missing something obvious.

    All the best,
    Rosen
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top