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
Post a Comment