PDA

View Full Version : Paged JsonView+



reignman
20 Feb 2007, 3:14 AM
Hi...
I hope to make a more interesting thread for alle out there using a simple JsonView and want to have Paging in it.

as i understood right in this thread

http://www.yui-ext.com/forum/viewtopic.php?t=2848
the JsonViews data.Store can be exchanged by a own one... so why not extend the Store with Paging?

I don't know how to do it on my own so I would appreciate some help.

So i write down some Abilities of the View :) perhaps they exist, perhaps somebody can write some code examples here how to extend a JsonView in most efficient way :

- Paging for JsonView
- Changing template of View and reloading same page of View with new template (its good for different views like Explorer)
- reset paging to page one and reloading View with a totaly different ressource

THANKS for helping ... I think if we get the right answers here we can make a new example for the final release

BernardChhun
23 Feb 2007, 7:56 PM
I'll be working on that as soon as I have some free time reignman! :wink:

jack.slocum
25 Feb 2007, 5:50 AM
Everything is there for you to do it. You will need to use a standard View (not JsonView) in order to use a Store. There is a PagingToolbar class you can use to do the paging. Swapping out the template is easy as well:

view.tpl = someOtherTpl;
view.refresh();