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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Calling a function from Inline Editing CRUD functionality

Thread ID:





141417 Dec 11,2018 04:18 AM UTC Dec 13,2018 08:36 AM UTC React - EJ 2 3
Tags: Grid
Hiro Yoneyama
Asked On December 11, 2018 04:18 AM UTC


I'm looking at the Inline Editing Grid and wondering how can I make custom calls to a function (in my case a Redux action), for Add, Delete and Update? Would I have to use the dataStateChange function in the GridComponent?



Thavasianand Sankaranarayanan [Syncfusion]
Replied On December 12, 2018 06:57 AM UTC

Hi Hiro, 

Thanks for contacting Syncfusion support. 

Query :  I'm looking at the Inline Editing Grid and wondering how can I make custom calls to a function (in my case a Redux action), for Add, Delete and Update? 

We have analyzed your query and we can make custom calls to the Add, Delete and Update operation functions using grid methods as mentioned below,  

Code Example

           toolbarClick(args) { 
            this.addRecord();                        //for add operation 
          else if(args.item.id=="grid_CustomEdit"){ 
            this.startEdit();                        //for edit operation 
          else if(args.item.id=="grid_CustomDelete"){ 
            this.deleteRecord(this.getSelectedRows()[0]);    //for delete operation 
          else if(args.item.id=="grid_CustomUpdate"){      
            this.endEdit();                                  //for update operation 

this.toolbarOptions = ['CustomAdd', 'CustomEdit', 'CustomDelete', 'CustomUpdate', 'Cancel']; 


Please get back to us for further assistance. 
Thavasianand S. 

Hiro Yoneyama
Replied On December 13, 2018 01:07 AM UTC

Thank you for the response, I think this should work for our purposes.



Mohammed Farook J [Syncfusion]
Replied On December 13, 2018 08:36 AM UTC

Hi Hiro,  
Thanks for your update. 
We are happy to hear that the provided solution has been resolved your problem. 
Please get back to us if you need further assistance. 
J Mohammed Farook 


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