PDA

View Full Version : Store's pageSize is larger than combobox's one



Stanislav94
7 Aug 2015, 4:31 AM
Hello!
Is it possible to set strong combo's parameter "pageSize" ? Cause, as I understand, it doesn't matter in case store's pageSize is larger.
For example

xtype: 'combobox', mode: 'remote',
pageSize: 20,
store: Ext.create('Ext.data.Store', {
pageSize: 50
....
}

here combobox will show 50 items in 1 page even I asked him only 20.

Generally, I'm trying to create combo with pagination, which have a store and will send request to server if only inqueires page is not always in the store.
Thanks )

scottmartin
8 Aug 2015, 6:45 AM
The combo pageSize is sent to the store, but since you are specifying a different size on the store, it is using that instead.

Scott.

Stanislav94
9 Aug 2015, 11:38 PM
The combo pageSize is sent to the store, but since you are specifying a different size on the store, it is using that instead.

Scott.

Thank you, Scott! But is there a way to make somthing like i want?


Generally, I'm trying to create combo with pagination, which have a store and will send request to server if only inqueires page is not always in the store.
Thanks )