obj.setAction("click", function(src){
var similarcelltext = new Array();
var TheRowTicker = myData[src.getRowProperty('index')][0];
for(x=myData.length-1;x>-1;x--){
if(myData[x][0] == TheRowTicker){ similarcelltext.push(x) }
}
window.setTimeout(function(){
obj.setSelectionValues(similarcelltext);
},300)
});
obj.setAction("click", function(src){
var similarcelltext = new Array();
var Thetextclicked = src.getItemProperty("text");
var colclicked = src.getColumnProperty('index');
for(x=myData.length-1;x>-1;x--){
if(myData[x][colclicked] == Thetextclicked){ similarcelltext.push(x) }
}
window.setTimeout(function(){
obj.setSelectionValues(similarcelltext);
},300)
});
obj.onCellClicked = function(event, col, row){
var similarcelltext = new Array;
var Thetextclicked = this.getCellText(col, row)
for(x=myData.length-1;x>-1;x--){
if(myData[x][col] == Thetextclicked){ similarcelltext.push(x) }
}
obj.setSelectedRows(similarcelltext);
}
This topic is archived.