I have used both 'DataSource' field in EjsGrid tag and then used 'WebApiAdaptor' in EjsDataManager. Upon loading page, the data is populated in the grid through API, this data is editable, insertable and deletable. Then upon some event, a data handler is called and the data in the grid is replaced and populated through a list (assigned to DataSource). This new data is not being inserted, updated or deleted. On the front end, it gets updated and deleted but if I refresh the page the same data is visible.
Is it possible to use both 'DataSource' field inEjsGridtag and also use 'WebApiAdaptor' inEjsDataManager?
VNVignesh Natarajan Syncfusion Team November 29, 2019 04:27 AM UTC
Thanks for contacting Syncfusion forums.
Query: “Is it possible to use both 'DataSource' field inEjsGridtag and also use 'WebApiAdaptor' inEjsDataManager?”
No. It is not possible to bind DataSource property and EjsDataManager simultaneously to same Grid. You can use either DataSource property or EjsDataManager to use WebAPI Adaptor. While use DataSource property, CRUD operation will take place locally. So it will be reflected only in local data. Similarly while using WebAPI Adaptor, PUT, POST,DELETE request will be sent to server and changes will be saved in your database directly.
But if you use both DataSource property and EjsDataManager to same Grid, DataSource property is considered and CRUD operations are handled locally. We suggest you to use either DataSource property or EjsDataManager for Grid. Please let us know the details about why you want to use both DataSource property and EjsDataManager for same Grid, it will be helpful for us to analyze about your requirement and update you the solution as early as possible.
JUJunaidNovember 29, 2019 10:19 AM UTC
Thanks for your reply.
VNVignesh Natarajan Syncfusion Team December 2, 2019 12:11 PM UTC
Thanks for the update.
Please get back to us if you have further queries.