URGENT!!!! Get Column values for Selected Rows
I'm trying to get all column values from a list of selected rows.
There is a way to do it?
I did this but is not working.
Any ideas?
There is a way to do it?
I did this but is not working.
function GetColumnBySelectedRows(Col, oGrid){
var myRowsIndex = oGrid.getSelectedRows();
alert(myRowsIndex);
var mySelectedRowsIndex = myRowsIndex.split(","); <-- problem here
alert(mySelectedRowsIndex);
//alert(oGrid.getData(0,SeletedRowsIndex));
//var mySelectedRowsIndex = SeletedRowsIndex.split(",");
//alert(mySelectedRowsIndex);
var rowIndex, iIndex, rowColumnValue = "";
for(iIndex=0; iIndex<aSelectedRowsIndex.length; iIndex++){
rowIndex = aSelectedRowsIndex[iIndex];
rowColumnValue += oGrid.getCellText(Col,rowIndex) + ",";
}
return rowColumnValue;
}
Any ideas?
Odimar Tomazeli
April 11,