无法在 radtreeview 中使用拖放
我已将所有数据绑定到 RadTreeView,但无法使用拖放功能。我使用了四个属性
IsDragDropEnabled="True"
IsDropPreviewLineEnabled="True"
AllowDrop="True"
IsDragPreviewEnabled="True"
,并且我想在同一棵树中删除一个项目。但这不起作用。
I have binded all data to RadTreeView
but unable to use drag-'n-drop. I used four properties as
IsDragDropEnabled="True"
IsDropPreviewLineEnabled="True"
AllowDrop="True"
IsDragPreviewEnabled="True"
and I want to drop an item within same tree. But it doesnt work.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这里有很多信息: http://www.telerik.com/ help/silverlight/raddraganddrop-events.html
但我在树视图方面也遇到了麻烦。
There is quite a bit of info here : http://www.telerik.com/help/silverlight/raddraganddrop-events.html
But I'm also having trouble with the tree view.
快速阅读这篇 Telerik 文章,拖放似乎对我来说效果很好。
EnableDragAndDrop 和 OnNodeDrop 似乎是使其正常工作的两个重要部分,但不在您尝试的属性列表中。华泰
After a quick read of this telerik article, drag-drop seems to be working quite well for me.
EnableDragAndDrop and OnNodeDrop seem to be the two vital pieces to getting it working, but weren't in your list of attributes you tried. HTH
现在,在后面的代码中,
您必须
在构造函数中
触发事件,然后
就是这样。您将能够拖放。
Now in the code behind
You have to fire event
In Constructor
Then
This is it. You will be able to drag and drop.