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

Keep row in edit mode

1 Answer 67 Views
Grid
This is a migrated thread and some comments may be shown as answers.
CalebH
Top achievements
Rank 1
CalebH asked on 24 Jul 2018, 05:25 PM

Let me lay out the desired functionality and see if y'all can help me.

 

I have a grid that uses inline editing. When a row is being edited, if the user then clicks the edit button on another row it switches the row edit, no matter if the current row has changed data or not. What I would like to happen is that the user cannot switch the editing row if it is dirty.

 

My initial thought was just use the BeforeEdit event and check if there was a currently edited row and preventDefault. Since the currently edited row switches before the BeforeEdit event is triggered this did not work. 

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 25 Jul 2018, 09:44 AM
Hi Caleb,

You can achieve this requirement using the approach demonstrated in the following article:
https://docs.telerik.com/kendo-ui/knowledge-base/grid-prevent-editing-when-editing

In addition, you can also check:
https://docs.telerik.com/kendo-ui/controls/data-management/grid/how-to/Editing/grid-prevent-navigation-when-in-editing-mode

I hope this will prove helpful.

Regards,
Eyup
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
CalebH
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or