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
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.
If you have not checked yet, be sure to visit site of our main product Webix mvc library and page of web datagrid product.