How to get row data in preOpen event
How to get row data in preOpen event
JustinPMacCreery
Posts: 2Questions: 1Answers: 0
editor.on('preOpen', function(e, mode, action){
var d = price_table.row( editor.modifier().row ).data()
if(d[0]['locked'] == '1'){
return false;
}
return true;
});
To determine whether or not a row is editable, in the row data there's a key for 'locked' and it's set to true ('1'), editing the field should be disabled. However, d = price_table.row( editor.modifier().row ).data() leaves d = null. How do I get the row data at this point?
Answers
Got it: