I have a grid that allows the user to select rows clientside.
When my page loads, I want to some of the rows to be selected. I want this by using javascript , so i wrote this
for (var i = 0; i < grid.MasterTableView.Rows.length; i++)
{
var curRowId = grid.MasterTableView.GetCellByColumnUniqueName(grid.MasterTableView.Rows[i], "column6");
var curRowSelect = grid.MasterTableView.GetCellByColumnUniqueName(grid.MasterTableView.Rows[i], "column12");
var id = window.opener.document.getElementById("InvoicesControl1_HdnCCinfo");
var temp = new Array();
temp = id.value.split(',');
if(FNArrayGetSearchLinearRowI(curRowId.innerHTML,temp))
{
grid.MasterTableView.SelectRow(grid.MasterTableView.Rows[i].Control,true);
}
}
this code selects only last row , pls suggest me how to select multiple row.
Thank's in advance
When my page loads, I want to some of the rows to be selected. I want this by using javascript , so i wrote this
for (var i = 0; i < grid.MasterTableView.Rows.length; i++)
{
var curRowId = grid.MasterTableView.GetCellByColumnUniqueName(grid.MasterTableView.Rows[i], "column6");
var curRowSelect = grid.MasterTableView.GetCellByColumnUniqueName(grid.MasterTableView.Rows[i], "column12");
var id = window.opener.document.getElementById("InvoicesControl1_HdnCCinfo");
var temp = new Array();
temp = id.value.split(',');
if(FNArrayGetSearchLinearRowI(curRowId.innerHTML,temp))
{
grid.MasterTableView.SelectRow(grid.MasterTableView.Rows[i].Control,true);
}
}
this code selects only last row , pls suggest me how to select multiple row.
Thank's in advance
