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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

dataStateChange of ejs Grid does not fire . Cannot add new row.

Thread ID:

Created:

Updated:

Platform:

Replies:

141512 Dec 14,2018 12:54 PM UTC Dec 17,2018 07:22 AM UTC Angular - EJ 2 1
loading
Tags: Grid
Anthony
Asked On December 14, 2018 12:54 PM UTC

We are  facing issues while performing  CRUD operation through the Syncfusion ejs grid with Angular 7 using web API.

When add row  button is clicked , a row is seen as added in the UI, but when clicked on update the given row is not getting updated to database

 1. In order to save the record  in database, we have tried to save data on datastatechanged event of ejs grid , but it is not working. event does not get fired at all 

  1. Next we  tried to do it by using URLAdaptors , but it gives connection_refused_error for controller's methods

 Can you provide some pointers about why the event is not getting triggered ? Would appreciate urgent help. 


Thanks


Mohammed Farook J [Syncfusion]
Replied On December 17, 2018 07:22 AM UTC

Hi Anthony, 

Greetings from Syncfusion. 

Query :  Can you provide some pointers about why the event is not getting triggered ? 
 
We have analyzed your query and dataStateChange event will be triggered only after the grid update. So you cannot bind new rows to the grid in this event but instead we suggest to use the actionBegin event with a condition as ‘args.requestType’ is ‘save’. Please refer to the below documentations for your reference, 

                                https://ej2.syncfusion.com/documentation/api/grid/#actionbegin 

If we have misunderstood your query, then please provide the below information or details to look into this issue further, 

  1. Are you not using updateUrl property of dataManager? This will handle the update request by default.
  2. Please provide your controller side code?
  3. Please share the full grid code example?


Regards, 
J Mohammed Farook 
 


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

;