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

Grid Edit External Form - Cancel In Grid

2 Answers 129 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 19 Mar 2019, 04:18 PM

I'm using an external form to edit grid rows. I have a CommandColumn that contains 3 buttons with the EditCommand, RemoveCommand, and CancelCommand directives.

I have the edit and remove commands working, and the data is being bound to the external form. I can also save the form just fine.

 

However, I have a requirement for the cancel to exist on the grid row, not on the form. I'd like the grid row to toggle to an edit mode, but have the editing done in my form, thus allowing me to cancel from the grid.

 

Is this even possible? I couldn't figure out any way to do it on my own.

2 Answers, 1 is accepted

Sort by
0
Michael
Top achievements
Rank 1
answered on 19 Mar 2019, 04:37 PM

I resolved this myself. The piece I was missing was

sender.editRow(rowIndex); 

 

0
Dimiter Topalov
Telerik team
answered on 21 Mar 2019, 11:21 AM
Hi Michael,

Good job on resolving the problem on your own, and thank you for sharing the solution with the community. I will close this thread now, but do not hesitate to reopen it or start a new one as necessary if you have further or other questions.

Regards,
Dimiter Topalov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
General Discussions
Asked by
Michael
Top achievements
Rank 1
Answers by
Michael
Top achievements
Rank 1
Dimiter Topalov
Telerik team
Share this question
or