TreeView Update

I have a treeview control on an aspx page. The data comes from database and I bind it to treeview control programmatically. (Parent-Child relationship in database of course) Well and I added a textbox which I use to add new child under the selected node and it works also good but so as to see the new added node, I have to refresh and page and all the expanded nodes collapses naturally. How can I prevent that. I am also using updatepanel not to refresh whole page and to expand child nodes I am using topicTree_TreeNodePopulate event of course. When users add something under the selected node , without any refreshment or postback the recently added node should be seen right under the selected page. Thanks in advance.. Btw I haven't much experience on Javascript so I can't do it with javascript.
This question has the look of auto-translated text; are you asking how to perserve the expantion of tree-view nodes?

以上就是TreeView Update的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准