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

Prevent editing of a single row in the grid

3 Answers 432 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Troy
Top achievements
Rank 1
Troy asked on 23 Jul 2012, 05:16 PM
Is there any way to prevent editing of the first row in a grid?  I need to allow editing of the remainder of cells in the grid (based on the config), however, I want to prevent all editing for the entire first row.

3 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 25 Jul 2012, 07:07 AM
Hello Troy,

One way is call cancelRow on edit event.

Other way is to hide edit button once the Grid is data bound using jQuery.

All the best,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Troy
Top achievements
Rank 1
answered on 25 Jul 2012, 12:13 PM
Thanks for the response! I ended up using the edit event with closeCell() and it worked perfectly.  Thanks again!
0
Sanjeev
Top achievements
Rank 1
answered on 31 Oct 2012, 02:38 PM
I found one issue while using closecell.when navigation property  is set true for the grid and you call closecell on edit  , the navigation  gets disrupted. The navigation gets back to work after some more keypress or when control comes back to cell again.
Tags
Grid
Asked by
Troy
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Troy
Top achievements
Rank 1
Sanjeev
Top achievements
Rank 1
Share this question
or