SMART datagrid v.1 > Classes > TreeDataSet
It searches fields which are transferred by parameter fields and values list and Data Rows corresponding to the value of each field and returns them as array.
If does not exist, it will return null or an empty array. Each item of fields can be fieldName or index.
$('#searchRows').click(function () {
var fields = ['customer_id', 'product_id'];
var values = ['cust01', 'prod01'];
var rows = ds.findRows(fields, values, false, -1);
if (row) {
var rows = tree.getRowsOfDataRows(rows);
tree.checkAll(false);
tree.checkRows(rows, true);
}
});