Hi
Please can someone help me..
i'm using RadGrid Ajax Grid, my coed is returning an error 'MasterTable' is undefined..
i also tried
var grid = sender;
function RowSelected(sender, eventArgs)
{
var dataItem = $get(eventArgs.get_id());
var grid = $find("<%=RadGrid1.ClientID %>");
var MasterTable = grid.get_masterTableView();
var row = MasterTable.get_dataItems()[dataItem.rowIndex];
var cell = MasterTable.getCellByColumnUniqueName(row, "tServer.id");
//here cell.innerHTML holds the value of the cell
}
function redirectToConfig()
{
var selectedRows = MasterTable.get_selectedItems();
var row = selectedRows[0];
window.location = 'ServerConfig.aspx?id='+row
}
</script>
</telerik:RadCodeBlock>
<input onclick="redirectToConfig();" type="button" value="View Server Config"/>
Please can someone help me..
i'm using RadGrid Ajax Grid, my coed is returning an error 'MasterTable' is undefined..
i also tried
var grid = sender;
function RowSelected(sender, eventArgs)
{
var dataItem = $get(eventArgs.get_id());
var grid = $find("<%=RadGrid1.ClientID %>");
var MasterTable = grid.get_masterTableView();
var row = MasterTable.get_dataItems()[dataItem.rowIndex];
var cell = MasterTable.getCellByColumnUniqueName(row, "tServer.id");
//here cell.innerHTML holds the value of the cell
}
function redirectToConfig()
{
var selectedRows = MasterTable.get_selectedItems();
var row = selectedRows[0];
window.location = 'ServerConfig.aspx?id='+row
}
</script>
</telerik:RadCodeBlock>
<input onclick="redirectToConfig();" type="button" value="View Server Config"/>