hi,
i need to get the RadGrid id on client side,but i cant able to get the selected row value
i am using this code for get the id
but its not working,returns the null value
function GetSelectedNames() {
alert('hello');
var grid = $('#<%# RadGrid1.ClientID %>');
alert(grid);
var MasterTable = grid.get_masterTableView();
var selectedRows = MasterTable.get_selectedItems();
for (var i = 0; i < selectedRows.length; i++) {
var row = selectedRows[i];
var cell = MasterTable.getCellByColumnUniqueName(row, "EmpId")
alert(cell.innerHTML);
//here cell.innerHTML holds the value of the cell
}
needs some one help
Thanks in advance
Regards
Kavi.n