-
12 Nov 2007 7:33 AM #31
-
12 Nov 2007 9:19 AM #32
Hi.
I have a strange problem, see http://www.kreisalarm.de/ext/2/2.html (Firefox 2.0.9)
I used a proxy (HttpProxy) and the XML reader, the BufferedStore (bufferSize: 30) and the BufferedGridView (nearLimit: 10).
As you can see it seems to work when scrolling one amount. But when jumping the same page (same offset and limit) is requested over and over again.
Any idea?
J
-
12 Nov 2007 11:28 AM #33
[QUOTE=jheid;85515]Hi.
I have a strange problem, see http://www.kreisalarm.de/ext/2/2.html (Firefox 2.0.9)
I used a proxy (HttpProxy) and the XML reader, the BufferedStore (bufferSize: 30) and the BufferedGridView (nearLimit: 10).
As you can see it seems to work when scrolling one amount. But when jumping the same page (same offset and limit) is requested over and over again.
Any idea?
J
-
12 Nov 2007 1:06 PM #34
Okay, a simpler example with the same problem:
PHP Code:var Netz = Ext.data.Record.create([
{name: 'name', mapping: 'name'}
]);
var myReader = new Ext.data.XmlReader ({
totalRecords: '//objects/@count',
record: '//objects/netz',
}, Netz);
var ds = new Ext.ux.grid.BufferedStore/*Ext.data.Store*/ ({
bufferSize: 30,
proxy: new Ext.data.HttpProxy ({url: '/pflege/get-data-Netz.xml' }),
reader: myReader
});
var cm = new Ext.grid.ColumnModel([
{header: "Name", width: 60, sortable: true}
]);
var bufferedView = new Ext.ux.grid.BufferedGridView ({
nearLimit: 10,
loadMask: {
msg: 'Daten werden nachgeladen...'
}
});
var bufferedGridToolbar = new Ext.ux.BufferedGridToolbar ({
view : bufferedView,
displayInfo : true
});
var bufferedSelectionModel = new Ext.ux.grid.BufferedRowSelectionModel();
var grid = new Ext.grid.EditorGridPanel ({
renderTo: 'editor-grid',
cm: cm,
store: ds,
sm: bufferedSelectionModel,
autoWidth: true,
height: 400,
loadMask: true,
bbar: bufferedGridToolbar,
view: bufferedView
});
ds.load ();
-
12 Nov 2007 4:00 PM #35
Very nice - Suggestions/questions
Very nice - Suggestions/questions
First, very nice work.
I'm a newbie so please forgive me if these are obvious:
When I view it in FF2 there is no scrollbar to the right, is that on purpose or might that be forthcoming feature (I think from an earlier post this is intentional, but I wasn't sure why)? I was thinking maybe something like while you click on the scrollbar and drag up and down it shows the range it would return. (I mention this also because you have 0.1 alpha so maybe are keen to some suggestions)
Similar to the above, might be nice to be able to type in say bottom toolbar field what entry you want to go to and then have it zing you to that range (you might enter row 1354 which may not exist, so it should just get plus/minus the requested row?).
-
12 Nov 2007 11:58 PM #36
@mjlecomte - Your request should probably be treated as a plugin to this component.
-
13 Nov 2007 12:01 AM #37
Thank you, impressive work!
"It is better to be young, pretty and rich instead old, ugly and poor."
(c) Alan Ford.
-
13 Nov 2007 1:21 AM #38
-
13 Nov 2007 1:26 AM #39
The XML file is quite simple regarding my XML reader. Here's an example:
PHP Code:<?xml version="1.0"?>
<data>
<objects count="50">
<netz><name>1</name></netz>
<netz><name>2</name></netz>
...
<netz><name>50</name></netz>
</data>
-
13 Nov 2007 1:29 AM #40


Reply With Quote



