We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Using both 'DataSource' field in EjsGrid tag and 'WebApiAdaptor' in EjsDataManager

Thread ID:

Created:

Updated:

Platform:

Replies:

149509 Nov 28,2019 08:40 AM UTC Dec 2,2019 12:11 PM UTC Blazor 3
loading
Tags: Grid
Junaid
Asked On November 28, 2019 08:40 AM UTC

Good day,
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?


Regards.
Junaid

Vignesh Natarajan [Syncfusion]
Replied On November 29, 2019 04:27 AM UTC

Hi Junaid, 

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. 

Regards, 
Vignesh Natarajan. 
 


Junaid
Replied On November 29, 2019 10:19 AM UTC

Thanks for your reply.

Regards.
Junaid

Vignesh Natarajan [Syncfusion]
Replied On December 2, 2019 12:11 PM UTC

Hi Junaid,  

Thanks for the update.  

Please get back to us if you have further queries.  

Regards, 
Vignesh Natarajan. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon