Opened 14 years ago

Closed 14 years ago

#5757 closed defect (fixed)

Setting the store in the DojoData model should only be done in the constructor

Reported by: benschell Owned by: Jared Jurkiewicz
Priority: high Milestone:
Component: DojoX Grid Version: 1.0
Keywords: Cc:
Blocked By: Blocking:


If the store is set via:

var newModel = new; = myStore; 

problems will arise, as information about the store is setup during construction (attaching events, determining store capabilities, etc.). This same model should be created like so:

var newModel = new{store: myStore});

This is only docs problem, and only occurs on one page. This should be changed so that users don't start setting the store directly, then running into notification, writing, and identity-fetching issues later.

This page should be changed to something like:

var newModel = new{rowsPerPage: 20, store: myStore, query: {type: someOtherType}, clientSort: true});
// Remember to call newModel.destroy() when you're done.

Change History (1)

comment:1 Changed 14 years ago by Jared Jurkiewicz

Resolution: fixed
Status: newclosed

Updated the docs accordingly.

Note: See TracTickets for help on using tickets.