SMART datagrid v.1 > Classes > GridDataSet
Find and return the fields which are transferred by parameter fields and values list and the first data row which is corresponding to the value of each field.
If do not exist, it will return -1. Each item of fields can be fieldName or index.
$('#search').click(function () {
var fields = ['customer_id', 'product_id'];
var values = ['cust01', 'prod01'];
var row = ds.findRow(fields, values, false);
if (row >= 0) {
var idx = grid.focusedIndex();
var idx.rowIndex = grid.getRowOfDataIndex(row).index();
grid.setFocusedIndex(idx);
}
});