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

[Solved] prevent to edit a cell

0 Answers 68 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ajeesh
Top achievements
Rank 1
Ajeesh asked on 27 Jan 2012, 01:30 PM
Hi

How to prevent cell from edit using e.stopPropagation or any other method is there to prevent cell edit
i have the following code

function onRowDataBound(e) {
   if ( !editable(e.dataItem)) {
        $(e.row).find("td").click(function(e) {
               e.stopPropagation();
        });
   }
}


but thsi will prevent edit  one full row.I  need few cells in row Uneditable in onRowDataBound function
Tags
Grid
Asked by
Ajeesh
Top achievements
Rank 1
Share this question
or