validateEditor

validates data in currently active editor

boolean validateEditor( [id id] );
ididid of editor
booleantrue if text in editor confirms to validation rules

Example

var grid = webix.ui({
    view:"datatable",
    rules:{
       price:function(obj){ return obj>0; }
    }
    ...
})
...
grid.validateEditor();

Details

If id not provided - uses last opened editor

Back to top