PDA

View Full Version : Update the store.proxy.data dynamically



Sandeesh
28 Feb 2012, 6:45 AM
Hi,

I have implemented Pagination using PagingMemoryProxy.
The grid also supports Drag n Drop (Self i.e re-ordering of rows is possible).

How do i update the Data in the proxy with the complete re-ordered data of the grid.?
When I try to get the data from store, I get Json data for only current page.
How do I get the entire Json data for grid to update my Proxy data?


Thanks in advance

mitchellsimoens
28 Feb 2012, 6:47 AM
The data on the proxy is a simple array so you would have to do some splicing to reorder it.

Sandeesh
28 Feb 2012, 6:49 AM
Is there no way in which I can get the Reordered Json data (for entire grid) ?

mitchellsimoens
28 Feb 2012, 6:53 AM
The data is there, you just need to remove the record and then insert it at the new index.

mitchellsimoens
28 Feb 2012, 6:53 AM
Added, this is native JavaScript and is the most performant way.