Hello,
I have a method to set rows by column id value setted in data source. My source is like that:
var source = {
datatype: "json",
id: columnName,
datafields: datafields,
localdata: data
};
My function to select rows by source id has one parameter, an array of values that match the value of the column I use as id.
function setselectedRowsByValue(arrValues){
var index = -1;
this.value = '';
for(var i=0;i<arrValues.length;i++){
index = $('#grid').jqxGrid('getrowboundindexbyid', arrValues[i]);
this.setselectedRow(index); //own method
}
}
When virtual mode is off, this method works fine and selects all the rows I pass in the parameter array (in multiplerows selection mode). When I set virtual mode ON, this function stops working and returns -1 always.
Does anybody know why?
Thank you!