Hi
Don't know if I'm missing a trick here.
I am using jayrock to return data that is a list of objects serialized into a JSON string. I am am then attempting to set the datasource of a grid as follows:
<a javascript function>
function SetGrid()
{
var service = new JAYROCKService();
var ds = service.getGridData(); //ds is a valid json string
var grid = getGridTable(); //method to get grid object
var mastertable = grid.get_masterTableView();
mastertable.set_dataSource(ds);
mastertable.dataBind();
This call and ones like it attached to a number of buttons, and they attempt to bind the grid to a number of different data sets depending on which button is pressed.
The examples I saw were a lot more complicted than this but were also doing a lot that I didn't need. Is the above possible or am I missing a key idea for this approach?
If this is not possible is it possible to add individual rows to a grid on client side only?
Regards
Kieran
Don't know if I'm missing a trick here.
I am using jayrock to return data that is a list of objects serialized into a JSON string. I am am then attempting to set the datasource of a grid as follows:
<a javascript function>
function SetGrid()
{
var service = new JAYROCKService();
var ds = service.getGridData(); //ds is a valid json string
var grid = getGridTable(); //method to get grid object
var mastertable = grid.get_masterTableView();
mastertable.set_dataSource(ds);
mastertable.dataBind();
This call and ones like it attached to a number of buttons, and they attempt to bind the grid to a number of different data sets depending on which button is pressed.
The examples I saw were a lot more complicted than this but were also doing a lot that I didn't need. Is the above possible or am I missing a key idea for this approach?
If this is not possible is it possible to add individual rows to a grid on client side only?
Regards
Kieran