Opened 10 years ago
Closed 10 years ago
#15868 closed defect (invalid)
ObjectStoreModel: When add a new node, the Tree not update automatically
Reported by: | jzw | Owned by: | bill |
---|---|---|---|
Priority: | undecided | Milestone: | tbd |
Component: | Dijit | Version: | 1.8.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
hi, when I follow http://dojotoolkit.org/documentation/tutorials/1.8/store_driven_tree/ to add a new node, it cannot trigger Tree's _onItemChildrenChange。
The demo generate the item id at the client code, if I want to generate the item id at the server side, how should I write the code?
What result should be return at server side, when I insert a new node?
Change History (2)
comment:1 Changed 10 years ago by
comment:2 Changed 10 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
This is a bug database, not a support forum. You should post questions to the dojo-interest mailing list.
I'm still revising that Tree tutorial, but what you are asking for (to generate the id on the server) is outside the scope of the tutorial. (In general terms, the client code should send the new item to the server, and then the server should notify the client that a new item was added to the store. Same way as if client #1 created the item and client #2 reflected the update.) Persevere may solve your problem.
I test after #15847 fixed.