树视图选择的节点事件未触发 [英] Tree view selected node event is not firing

查看:68
本文介绍了树视图选择的节点事件未触发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我在项目中使用了树形视图,其中通过xml数据源填充了树形视图.
我想当单击或选择树节点时,我将从导航URL中获取URL,并附加一些查询字符串.
但是,当我单击树节点时,它不会触发所选节点更改的事件
并直接转到navigationurl中的url

任何帮助

Hi
I have used a tree view in my project, in which i have populated the treeview through an xml data source.
I want when a tree node is clicked or selected then i will take the url from navigateurl and append some of my query strings.
But when i click a tree node then it is not firing the selected node changed event
and directly going to the url in the navigateurl

Any Help

推荐答案

然后不要填写NavigateUrl字段-考虑将URL添加到TreeNode.Value字段中(我相信可以通过编辑TreeView的DataBindings完成)在您的SelectedNodeChanged处理程序中使用,例如,Page.Server.Transfer()
Do not fill NavigateUrl field then - consider adding URL into TreeNode.Value field instead (I believe it may be done via editing DataBindings of your TreeView) and in your SelectedNodeChanged handler use, for example, Page.Server.Transfer()


这篇关于树视图选择的节点事件未触发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆