Opened 8 years ago
Closed 7 years ago
#15325 closed defect (patchwelcome)
Treegrid path refresh issue
Reported by: | donjoe | Owned by: | Evan |
---|---|---|---|
Priority: | undecided | Milestone: | tbd |
Component: | DojoX Grid | Version: | 1.6.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Hello everyone, I am having troubles with the dojo treegrid.
In fact, I build a ForestStoreModel? from an ItemFileWriteStore?, and then I set this ForestStoreModel? to the treegrid. Afterwards, I change the positions of elements in a NEW ForestStoreModel? that I set to the treegrid.
When I try to get the new path of a given element, the function "getItemIndex" returns the old path (from the first ForestStoreModel?, not the second one).
Here is an example (steps):
1) Build a first treemodel structure :
- 1 (path 0)
- 2 (path 0/0)
- 3 (path 1)
2) Set this treemodel to the treegrid
3) Build a second treemodel structure :
- 1 (path 0)
- 3 (path 0/0)
- 2 (path 0/1)
4) Set this treemodel to the treegrid
5) Call the function getItemIndex:
- treegrid.getItemIndex(treegrid.store._getItemByIdentity("2")) returns "0/0" instead of "0/1"
- treegrid.getItemIndex(treegrid.store._getItemByIdentity("3")) returns "1" instead of "0/0"
If anybody could tell me if something is wrong with the way I refresh the treegrid, or is it a bug in the treegrid itself (dojo 1.6.0).
Thank you !
Regards,
Change History (3)
comment:1 Changed 8 years ago by
Component: | General → DojoX Grid |
---|---|
Owner: | set to Evan |
comment:2 Changed 7 years ago by
comment:3 Changed 7 years ago by
Resolution: | → patchwelcome |
---|---|
Status: | new → closed |
DojoX Grid and EnhancedGrid are deprecated in favor of dgrid and gridx.
You should upgrade your code to use one of those two grids.
We will consider patches to the old DojoX Grid code though.