Changes between Initial Version and Version 1 of Ticket #14131


Ignore:
Timestamp:
Oct 21, 2011, 8:48:51 PM (10 years ago)
Author:
bill
Comment:

Not sure which docs you were reading but the ForestStoreModel API doc, in the "event summary" section, explains that:

onSetItem(item, attribute, oldValue, newValue) Updates the tree view according to changes to an item in the data store. Developers should override this method to be more efficient based on their app/data.

Actually, many of the methods in ForestStoreModel need to be overridden, as documented in that documentation section.

Sorry that this is kind of confusing, but anyway it will become easier with #13781.

PS: I should also mention that this is occurring because during expansion of item in JsonRestStore, onSetItem() is getting called, even though the items aren't really changing. This is an inefficiency in JsonRestStore.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14131

    • Property Status changed from new to closed
    • Property Component changed from General to Dijit
    • Property Resolution changed from to invalid
  • Ticket #14131 – Description

    initial v1  
    1 Using the tree dijit with a ForestStoreModel and a JsonRestStore, there is a lot of unnecessary network activity.  On every expansion, the root is queried once again for every node.  From reading the docs, this is not supposed to happen since the goal of lazy loading is efficiency.
     1Using the tree dijit with a !ForestStoreModel and a !JsonRestStore, there is a lot of unnecessary network activity.  On every expansion, the root is queried once again for every node.  From reading the docs, this is not supposed to happen since the goal of lazy loading is efficiency.