Quantcast

Problem with startup dgrid 0.4

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Problem with startup dgrid 0.4

Farley Carter
I am trying to use a dgrid 0.4.

when startup is called I get an error TypeError: self._renderedCollection.fetchRange is not a function on js/dgrid/OnDemandList.js line 266;

jobtransactionStore = new DstoreAdapter(
        new Rest({
             target : "/db/jobTransactionDates.php"
        })    
);    



    var Grid = declare([OnDemandGrid]); //, Selection, Keyboard

        transactionGrid = new Grid({
                collection: jobtransactionStore,
                columns:  {
                        label: 'Shipment Date'
                },
            loadingMessage: 'Loading data...',
                noDataMessage: 'No results found.'
        })

    transactionGrid.startup();



Any idea what I am doing wrong?

TIA
Farley
Any argument is viable, until logic and reality set in.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem with startup dgrid 0.4

Farley Carter
Found the problem. I did not need the DstoreAdapter as Rest is a dstore.

Farley
Any argument is viable, until logic and reality set in.
Loading...