This is a migrated thread and some comments may be shown as answers.

sync an element after create was called

1 Answer 63 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Maxim
Top achievements
Rank 1
Maxim asked on 28 Nov 2012, 04:26 PM
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();

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 29 Nov 2012, 07:32 AM
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!
Tags
Data Source
Asked by
Maxim
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or