开发者

Jquery TreeView Add node

A parent page contains a tree (Jquery TreeView), users can add a node using a pop-up, a pop-up has to connect to the database and retrieve some data and return it upon closing (at this point it is a .net server-side page). After this I have to add a node(or several) to the TreeView.

qu开发者_C百科estion: upon a pop-up close, how do trigger the adding a node to jquery TreeView?

I have asked this question here 10 times and no one answers it clearly.


That nobody answers you maybe should get you thinking.

After reading this and some of your previous questions I can tell you that you just don't provide enough information to get anybody interested to look at your problem.

No code sample. No precise description. No listing of what you tried and what failed or how it failed and so on.

But basically all you need is already shown on the jQuery Treeview demopage. Check the source and notice how the Add! button works.

Excerpt from demo.js

var newnodes = $("<li><span class='folder'>New Sublist</span><ul>" +
    "<li><span class='file'>Item1</span></li>" +
    "<li><span class='file'>Item2</span></li></ul></li>").appendTo("#browser");
$("#browser").treeview({
  add: newnodes
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜