hello everyone!
I need set (for some row's) a property like disabled to disallow that row be modified
I have a treegrid that displays 3 levels
the goal: the rows that are editable only leaf, no parents
I thought about putting a flag in the data I receive json but
Is there a property to disable a row in the editing?
EDit----------
Like I said
I put a flag in my json data for every row, some like: edit: true or edit: false
Then I did this function:
onBeforeEdit: function(row){
if(row.edit==false){
id = row.id;
$('#treegrid').treegrid('cancelEdit',id);
editingId = undefined;
}
}
I get the flag...that's ok
the problem is that the cancelEdit method is not working
if I put a alert message like alert(row.id) I see the id of the row ok
but the row stays the editor's field's in edit mode