Re: [qooxdoo-devel] qx.ui.table.model.Remote question

2008-02-13 Thread Hugh Gibson
> when reloading a qx.ui.table.model.Remote via the reloadData() > method with new data, the position in the dataset and the scroll > bars are not updated. This is the intended behaviour when one > reloads the same data, but leads to unexpected results when loading > a completely different set

Re: [qooxdoo-devel] qx.ui.table.model.Remote question: reload / row gaps

2008-02-12 Thread bibliograph
OK, sorry, my mistake, not the remote table model's: the LIMIT part of an sql query is NOT LIMIT firstrow, (lastrow-firstrow) but LIMIT firstrow, (lastrow-firstrow+1) ... I need to get more sleep...C. Christian Boulanger schrieb: > Actually, I think it does prefetch the data ok - my block siz

Re: [qooxdoo-devel] qx.ui.table.model.Remote question: reload / row gaps

2008-02-12 Thread Christian Boulanger
Actually, I think it does prefetch the data ok - my block size is 50 and it will always fetch 50 ahead and load it in the background - except, of course, when I make a big jump into areas of the data where there has been no preloading yet. However, what seems to be happening is that it always ski

Re: [qooxdoo-devel] qx.ui.table.model.Remote question: reload / row gaps

2008-02-12 Thread Derrell Lipman
On Feb 12, 2008 5:00 PM, Christian Boulanger <[EMAIL PROTECTED]> wrote: > > Thanks Derrell, > > it is definitively not working this way: > > tableModel.reloadData(); > table.setFocusedCell(0,0,true); > > as you said, it probably has to be done AFTER the data is loaded. Since the > table retrieval i

Re: [qooxdoo-devel] qx.ui.table.model.Remote question: reload / row gaps

2008-02-12 Thread Christian Boulanger
Thanks Derrell, it is definitively not working this way: tableModel.reloadData(); table.setFocusedCell(0,0,true); as you said, it probably has to be done AFTER the data is loaded. Since the table retrieval is behind-the-scenes in the remote model, I have to figure out how to differentiate "rel

Re: [qooxdoo-devel] qx.ui.table.model.Remote question

2008-02-12 Thread Derrell Lipman
On Feb 12, 2008 10:16 AM, Christian Boulanger <[EMAIL PROTECTED]> wrote: > Hi everybody, > > when reloading a qx.ui.table.model.Remote via the reloadData() method > with new data, the position in the dataset and the scroll bars are not > updated. This is the intended behaviour when one reloads the

[qooxdoo-devel] qx.ui.table.model.Remote question

2008-02-12 Thread Christian Boulanger
Hi everybody, when reloading a qx.ui.table.model.Remote via the reloadData() method with new data, the position in the dataset and the scroll bars are not updated. This is the intended behaviour when one reloads the same data, but leads to unexpected results when loading a completely different