Login Register

Can we update Grid data on the fly

is there any way to append data to and existing grid..on the fly,
e.g. suppose we recieve it through AJAX call and then append the same ?

please suggest
thanks
Manjul

Try searching the forum

This has been discussed here on few threads already before - see for example Refresh grid when underlying data on server changes.

Thanks buddy.. but my

Thanks buddy..
but my requirment was not to update the full grid model data

what I am looking.. to append some rows or modify the existing rows.. on the FLY ?

Not sure what you are

Not sure what you are looking for (your description can be interpreted several ways), but the documentation and test files include an "addRow" method for the Grid.

To modify data in rows, you can use the Grid's setDatum method.

By the way, what do you mean by "on the FLY" (I'm assuming it means if you get additional data or changed data from your server you want to incorporate that into an existing grid, right?)?

Frankf, I explain more

Frankf, I explain more clearly...
to add a row dynamically we have method=> grid.addRow(rowData,grid.rowCount).
this will append a row at the bottom...
what I want ;
Append multiple rows in one shot
Another requirement
Modify some of the existing rows

"on the Fly" means I have parallel AJAX call which recieves the data ..say after every 5 minutes

I hope now its clear ?

I replied in your other

I replied in your other thread. Beyond that, I'll be interested to learn what others suggest, other than studying the source code.

Update (to help others): Adding multiple rows apparently resolved here.