telerik - KendoUI grid create : how to deal when server response only the id of the new created item -


i want use kendoui grid widget rest api (manage dreamfactory); when create new item grid server response contains new id , not new item (aka fields) read in forum http://www.telerik.com/forums/request-for-support-on-editable-grid#2098471.

"when add new item in grid id should generated on server , newly inserted item (as array) client. way datasource can update internal data , grid widget update column field. in case server not return result, inserted item treated new 1 every time sync datasource. same applies destroy , update functionality."

my question how deal if cannot modify contains of server response.

here response server : {"record":[{"id":26}]}

any idea?

according the dreamfactory documentation, id of created record returned default. the docs mention may select returned fields. using fields=* return created fields. should sure use the record wrapper force return of array rather single, unwrapped id field.


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

how to prompt save As Box in Excel Interlop c# MVC 4 -

xslt 1.0 - How to access or retrieve mets content of an item from another item? -