Skip to main content

Bug Tracker

Side navigation

#2810 closed enhancement (invalid)

Opened May 06, 2008 10:30PM UTC

Closed October 13, 2009 12:09AM UTC

Last modified March 14, 2012 09:32PM UTC

[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

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}]"
Attachments (0)
Change History (3)

Changed May 06, 2008 10:31PM UTC by joern comment:1

description: 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}]" \ }}}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}]" \ }}}

Changed May 06, 2008 10:39PM UTC by joern comment:2

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"

Changed October 13, 2009 12:09AM UTC by dmethvin comment:3

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 .