Hello,
The following code just adds an onChange property to the editor, which works fine, but the console prompts an error.
Is there any problem with this code?
onBeginEdit:function(index,row){
var ed = $(this).datagrid('getEditor', {
index: index,
field: 'sl'
});
var opt = $(ed.target)[ed.type]('options');
opt.onChange = function(value){
$('#test').datagrid('updateRow',{
index: index,
row:{je:'888'}
})
};
$(ed.target)[ed.type](opt)