The following code works. The problem is that the request is sent with & _dc = 1299207914646 & limit = 25 added to each request sent to the server. Nothing I can do changes the limit = 25. Ideally, I do not want to add additional parameters to the server. I would do, however, with the ability to set a limit of up to 10,000 or something like that. I can add other parameters, but nothing removes the restriction = 25. I would also like to get rid of the & _dc parameter, although I do not know why it was added, this does not cause a problem.
Any ideas?
Note: some weird issue with formatting the code below?
thanks
Ext.require([ 'Ext.grid.*', 'Ext.data.*', 'Ext.panel.*' ]); Ext.onReady(function(){ Ext.regModel('Image_', { // window.Image is protected in ie6 !!! fields: ['id', 'key', 'value'] }); var store = new Ext.data.JsonStore({ model: 'Image_', proxy: { type: 'ajax', var store = new Ext.data.JsonStore({ model: 'Image_', proxy: { type: 'ajax', autoload: 'false', url: '/couchdb/test/_design/blah/_view/by_surname2?startkey=%22r%22&endkey=%22r\u9999%22', reader: { type: 'json', root: 'rows' } } }); store.load(); var listView = new Ext.grid.GridPanel({ width:425, height:250, collapsible:true, title:'Simple ListView <i>(0 items selected)</i>', renderTo: Ext.getBody(), store: store, multiSelect: true, viewConfig: { emptyText: 'No images to display' }, headers: [{ text: 'File', flex: 50, dataIndex: 'value' },{ text: 'Last Modified', flex: 35, dataIndex: 'key' },{ text: 'Size', dataIndex: 'id', flex: 15, cls: 'listview-filesize' }] }); // little bit of feedback listView.on('selectionchange', function(view, nodes){ var l = nodes.length; var s = l != 1 ? 's' : ''; listView.setTitle('Simple ListView <i>('+l+' item'+s+' selected)</i>'); }); });
javascript extjs
Duke dougal
source share