DataLudi Grid v.1 > Classes > DataSet
Return with searching fields passed by fields and values parameter list and the first dataRow corresponding with value of each field.
If there is not, returns -1. Each ite, of fields may be fieldName or index.
$('#search').click(function () {
var fields = [];
var values = [];
var row = ds.findRow(fields, values, false);
if (row >= 0) {
var idx = grid.focusedIndex();
var idx.rowIndex = grid.getRowOfDataIndex().index();
grid.setFocusedIndex(idx);
}
});