SMART datagrid v.1 > Classes > TreeDataSet
It searches and returns fields which are transferred by parameter fields and values list and the first Data Row corresponding to the value of each field.
If does not exist, it will return null. Each item of fields can be fieldName or index.
If strict is true, it will compare with equalValues, and if it is false, it will compare with sameValues.
$('#search').click(function () {
var fields = ['customer_id', 'product_id'];
var values = ['cust01', 'prod01'];
var row = ds.findRow(fields, values, false);
if (row) {
row = tree.getRowOfDataRow(row);
tree.setFocusedRow(row);
}
});