Bug Tracker

Opened 12 years ago

Closed 10 years ago

Last modified 8 years ago

#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:
Blocked by: Blocking:

Description (last modified by joern)

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 (3)

comment:1 Changed 12 years ago by joern

Description: modified (diff)

comment:2 Changed 12 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 10 years ago by dmethvin

Resolution: invalid
Status: newclosed

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 .

Note: See TracTickets for help on using tickets.