View Full Version : Store sync and grid - always displaying new record.

27 Aug 2013, 4:37 AM
Here we are working with a grid-form model. First the user is presented with a paginated grid of the existing records and can add a new record through a form window.

Let's say I have a store of Persons ordered by name. When I include a record with name "xxxx", the store will be sync. and the record will appear in the Grid, independent of the actual page.

The only way to handle this is the refresh of the grid?

Example: http://imageshack.us/f/407/0cjy.png/

3 Sep 2013, 2:49 PM
See if this example helps:

It's quite close to what you're wanting I believe (just omit the cellEditor stuff).

4 Sep 2013, 1:14 AM
Well, if you instruct your server to return index of new record in filtered set currently shown, then on client-side you may decide whether to show and where to show this new record.
However, this is a huge overhead, I would advise to anyway show it at the top of the set. Once user moves to other page, everything will be back to their places.