SMART datagrid v.1 > Classes > GridDataSet
Find and return the fields which are transferred by parameter fields and values list and the data rows which is corresponding to the value of each field.
If no corresponding rows, it will return null or 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);
if (rows && rows.length > 0) {
rows = grid.getRowsOfDataIndices(rows);
grid.checkAll(false);
grid.checkRows(rows, true);
}
});