This is a migrated thread and some comments may be shown as answers.

Replace Old value in grid in inline edit

1 Answer 157 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Binu
Top achievements
Rank 1
Binu asked on 07 Nov 2019, 12:27 PM

Hi All,

         In my kendo react grid i am doing in inline edit.  When i click row edit button row colum converting to  edit mode and  showing two button save and discard. if i click save it will save to database. If i click discard i want to  display old value(if i typed anything) in grid. How can i achieve this?

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 07 Nov 2019, 02:43 PM

Hello, Binu,

Whan I can suggest in this case is when clicking the update button to set the current value of the item in the app.

Then when the cancel button is clicked, to set that value back to the corresponding item.

We use this approach in one of our sample apps:

https://github.com/telerik/kendo-react-demo-aspnetcore-data/blob/master/ClientApp/components/WithState.js#L67

Regards,
Stefan
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Binu
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or