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 with my implementation?

Here's the _loadRowCount method:
_loadRowCount : function() {
    this.debug("Load row count");
    var slf = this;
    this._rpcRunning = this._rpc.callAsync(
        function(result, ex, id){
            slf._rpcRunning = null;
            if (ex === null) {
                slf._onRowCountLoaded(result);
            } else {
                slf._onRowCountLoaded();
            }
        },
        "getListSize"
    );
}

The returned result is always an integer...

Any help would be appreciated.
- Roman

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to