A
A
Arthur Koch2012-02-07 15:13:23
JavaScript
Arthur Koch, 2012-02-07 15:13:23

jQuery tree how?

Hey!

There is a task to implement a sufficiently large tree. In principle, jQuery treeview is suitable for this, BUT:

If the user opened several levels of one branch and then collapsed this entire branch, then when it is reopened, the states of the open branches should be preserved. The above plugin can also do this, BUT:

When you reopen the main node, you need to check if new nodes have appeared in this branch during this time, and if they have, then they need to be shown in this tree, and at the same time leave open the nodes that we opened early

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
Oleg Kolesnikov, 2012-02-07
@DOC_tr

dtree is a good plugin - it saves open tabs in cookies, and then on which tab the user is currently on.

A
Arthur Koch, 2012-02-07
@dudeonthehorse

Downloaded, studied. Cookies in the settings are set to true. I open the tree in the example. I refresh the page - the tree collapses. Or am I doing something wrong?
Will cookies work and open what is needed if, when moving to a new page, new nodes appear in the tree? The admin can add new nodes while the user is treading on the same page.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question