View Full Version : How to get records from Grid. -Plz Help me

15 Sep 2010, 3:20 AM
Dear friends,
I am using drag and drop functionality between two grids(dnd_grid_to_grid.js). I am doing this by referring the example that is provided in the URL : http://dev.sencha.com/deploy/dev/examples/dd/dnd_grid_to_grid.html

I would like to know how to get the records from grid. If i get all the records that is appear in the grid(left grid or right grid) then i simply store those records into the database.

Kindly help me how to get the records from the grid.
It is urgent.

My Advance Thanks

15 Sep 2010, 11:42 AM
Add listeners to the add and remove events on the grid and then you can access the record(s) that were added or removed from the drag and drop. If you just want to get all the records of the grid then you can call the grid's store methods that allow for you to interact with its records.

15 Sep 2010, 12:06 PM
The grid does not fire add ad remove events.

Everyone using a grid surely knows that it is backed by a Store?

15 Sep 2010, 12:09 PM
Your right I was supposed to say "the grid's store" not the grid. I apologize