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
If you have not checked yet, be sure to visit site of our main product Webix mvc library and page of web datagrid product.