Login Register

dojox.grid.data.DojoData

this.store has no properties from dojox.grid.data.DojoData (programmatic) [Solution]

So this is a stupid solution to a stupid code bumble, but I spent so long looking in the wrong places that I thought I'd make a post that hopefully people will find when they search for this error:

this.store has no properties

My problem was simply that I wasn't paying attention to the parameters required by the DojoData constructor.
constructor: function(inFields, inData, args){

Instead of:

var model = new dojox.grid.data.DojoData({
store:store,
rowsPerPage:dkp.pageSize,

Why is onItem commented out in dojox.grid.data.DojoData?

In 1.0.2 there is:

// request data
        requestRows: function(inRowIndex, inCount){
                var row  = inRowIndex || 0;
                var params = {
                        start: row,
                        count: this.rowsPerPage,
                        query: this.query,
                        onBegin: dojo.hitch(this, "beginReturn"),
                        //      onItem: dojo.hitch(console, "debug"),
                        onComplete: dojo.hitch(this, "processRows") // add to deferred?

    }
    // console.debug("requestRows:", row, this.rowsPerPage);
                this.store.fetch(params);
        },

I'm loading some large data that I need to transform. I don't want to do that in onBegin, because that

Syndicate content