Hi,
I've been looking/following this demo:http://demos.telerik.com/aspnet-ajax/grid/examples/client/insertupdatedelete/defaultcs.aspx
At the moment I just have one column, the following is returned from my webservice. I'm using an alert to display the webservice result.
result returns this in the alert box
[{"Test_PK":1},{"Test_PK":58}]
when it databinds it clears the grid, but if I do var result = [{"Test_PK":1},{"Test_PK":58}];
it works fine?
Any idea what I'm missing?
Thanks
I've been looking/following this demo:http://demos.telerik.com/aspnet-ajax/grid/examples/client/insertupdatedelete/defaultcs.aspx
At the moment I just have one column, the following is returned from my webservice. I'm using an alert to display the webservice result.
function updateGrid(result) { var tableView = $find("<%= RadGrid1.ClientID %>").get_masterTableView(); tableView.set_dataSource(result); tableView.dataBind(); var grid = $find("<%= RadGrid1.ClientID %>"); grid.repaint(); }[{"Test_PK":1},{"Test_PK":58}]
when it databinds it clears the grid, but if I do var result = [{"Test_PK":1},{"Test_PK":58}];
it works fine?
Any idea what I'm missing?
Thanks