Ticket #2810 (closed enhancement: invalid)
[treeview] async support for complete refresh
| Reported by: | joern | Owned by: | joern |
|---|---|---|---|
| Priority: | major | Milestone: | 1.2.4 |
| Component: | plugin | Version: | 1.2.3 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description (last modified by joern) (diff)
From the mailing list:
We're still having problems implementing a 'refresh' button for a treeview tree. We need to be able to re-initialize the tree, clearing out the current version completely, and reloading with data fresh from the server.
we're clearing out the current tree with: $('#openExistingTree').empty();
and then re-initializing with $('#openExistingTree').treeview({ url: "CalcBldrOpenExisting.ashx" });
Each time we hit 'refresh', we're getting a duplicate set of 'hitarea' divs
The initial json returned is:
"[{'text': 'Private Drafts','id': 3, 'hasChildren': true},{'text':
'Shared Drafts','id': 4, 'hasChildren': true},{'text': 'Published
Calculations','id': 5, 'hasChildren': true}]"
Change History
comment:2 Changed 5 years ago by joern
Solution proposed on mailing list: http://groups.google.com/group/jquery-en/browse_thread/thread/c858c4f0ae3b50f5/5d6f8ba43572ce52?#5d6f8ba43572ce52
"clear everything and recreate the root element"
comment:3 Changed 4 years ago by dmethvin
- Status changed from new to closed
- Resolution set to invalid
This is not a jQuery core bug. Please report plugin bugs to the plugin's author, or ask on the jQuery forums. jQuery UI bugs should be reported on the UI bug tracker, http://dev.jqueryui.com .
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
