PDA

View Full Version : how to switch on - off store pagenating within one store



flora-extjs
30 Jan 2017, 1:40 AM
Hi All,
I have a store - model defined like this


proxy: {
type: 'rest',
url: 'server/rest/mydata',
reader: {
type: 'json',
root: 'data'
}
}
default paging is 25.
I know how to supress pagenating at all. But I need this store within some codesnippets - most with pagenating - but somtimes without paginating. Is there an example how to solve this problem?
Thanks in advance

Gary Schlosberg
30 Jan 2017, 1:51 PM
Can you create two different instances of the store? Seems like you might want two different server scripts (one for paging, one not).