Custom CRUD
Thanks for your interest in Syncfusion products.
We can bind dataSource to grid and process the data using the data Adaptors of the ejDataManager. Please refer to the following online documentation on data adaptors.
Documentation for various data Adaptors: http://help.syncfusion.com/js/datamanager/data-adaptors
For your convenience, we have created a sample with OData service, which can be downloaded from the below location
Sample Link: http://www.syncfusion.com/downloads/support/forum/121568/ze/CRUD_Sample16387643
Please try the above sample and if you still face any difficulties, please share below details
Regards,
Ragavee U S.
Thanks for your update.
We went through the file that you have shared. We suspect that you have created a webAPI Service in node.js but have mentioned the adaptorType as “UrlAdaptor” in the ejDataManager.
When using a webAPI service, we suggest you to set “webApiAdaptor” as adaptorType. Also, we found that the editMode is “batch” in your sample, but have defined the insertUrl, updateUrl and deleteUrl properties of the ejDataManager. These properties of the ej.DataManager will not be triggered when the edit mode is “batch”. The corresponding property of the ej.DataManager for “batch” editMode is “batchUrl”.
Also, if you have created a webApi service, we would like to let you know that we don’t have batchEditing support in webApiAdaptor. So we suggest you to create Odata controller and use oDataAdaptor in order to achieve your requirement of batch Editing.
Else if the RESTful service corresponds to OData and still if you are facing the same issue, please share the below detail.
When a POST/PUT/DELETE action occurs, the exception will be obtained in the “Network” tab of the browser Developer tools window. Please share the screenshot of the “Headers” and “Response” tab for the corresponding request passed to the web service.
The provided information will be helpful to assist you accordingly.
Regards,
Ragavee U S.
- 5 Replies
- 3 Participants
-
JA Jacek
- Jan 2, 2016 09:02 PM UTC
- Aug 12, 2016 10:11 AM UTC