javascript - ExtJS Paging with Combo box -


created combo box extjs framework. pagination not working. please on this?

var store =   new ext.data.arraystore({     fields: ['id'],     pagesize:1,     data  : [       ['15'],       ['25'],       ['225'],       ['325'],       ['525'],       ['625'],       ['125'],       ['8725'],       ['825'],       ['1825'],       ['3825'],       ['4825'],       ['67825'],       ['82725'],       ['84725'],       ['86725'],       ['87525'],       ['87625'],       ['872665'],       ['235'],       ['235'],       ['225'],       ['245'],       ['550']     ]   }); var combo = new ext.form.combobox({   name : 'perpage',   width: 40,   mode : 'remote',   value: '1',   store:       store, //the store use in grid    pagesize:true,   listwidth     : 1,   width         : 600,   triggeraction : 'all',   displayfield  : 'id',   valuefield    : 'id',   forceselection: true });   var window = ext.create('ext.window.window', {     width: 650,     height: 100,     items: [combo] }).show(); 

all data i.e. 24 records shown in each page. enter image description here

as shown in image each page showing 24 records. expectation each page 1 record.

the combobox shows data in store. normally, store not hold data server when use paging. proxy manages data.

please check happens if use memoryproxy enablepaging , data:

var store =   new ext.data.arraystore({     fields: ['id'],     pagesize:1,     proxy: {         type:'memory'         enablepaging:true,         data  : [             ['15'],       ['25'],       ['225'],       ['325'],       ['525'],       ['625'],       ['125'],       ['8725'],       ['825'],       ['1825'],       ['3825'],       ['4825'],       ['67825'],       ['82725'],       ['84725'],       ['86725'],       ['87525'],       ['87625'],       ['872665'],       ['235'],       ['235'],       ['225'],       ['245'],       ['550']         ]     } }); 

Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -