Re: [qooxdoo-devel] Remote table model calls _loadRowCount a lot

2009-01-27 Thread Derrell Lipman
On Tue, Jan 27, 2009 at 9:08 AM, Roman Schmid wrote: > Ouch. I wasn't aware of that. > Well.. i already posted a follow-up to my original post with a solution > that seems to work fine here. But i don't have a clue why :) That's a dangerous kludge, I think. The data isn't loaded yet and you're

Re: [qooxdoo-devel] Remote table model calls _loadRowCount a lot

2009-01-27 Thread Roman Schmid
Ouch. I wasn't aware of that. Well.. i already posted a follow-up to my original post with a solution that seems to work fine here. But i don't have a clue why :) Or would you skip the Remote Table model entirely and just work with the Simple table model? Luckily i won't have too many entries in m

Re: [qooxdoo-devel] Remote table model calls _loadRowCount a lot

2009-01-27 Thread Roman Schmid
I found a solution to the problem: One should call _onRowCountLoaded() even before the response returns from the server... at least this seems to result in correct behavior here. The working implementation looks like this: _loadRowCount : function() { this.debug("Load row count"); var slf

Re: [qooxdoo-devel] Remote table model calls _loadRowCount a lot

2009-01-27 Thread Derrell Lipman
On Tue, Jan 27, 2009 at 7:53 AM, Roman Schmid wrote: > Hello Devs. > > I implemented a remote table model to use with my RPC backend. It works, > but the _loadRowCount method is called a lot, before some data is being > displayed (about 20 times). That results in a lot of requests being sent > to

[qooxdoo-devel] Remote table model calls _loadRowCount a lot

2009-01-27 Thread Roman Schmid
Hello Devs. I implemented a remote table model to use with my RPC backend. It works, but the _loadRowCount method is called a lot, before some data is being displayed (about 20 times). That results in a lot of requests being sent to the server. Is this normal behavior? Is there something wrong wi