gridview .net 网站中的拖放
我有一个网格视图。在运行时,我需要将值从 gridview 的一个单元格拖放到 asp.net 网站中同一 gridview 的另一个单元格中。
帮助满足需要。
I have a gridview. in run time i need to drag the value from one cell of gridview and drop it in another cell of same gridview in asp.net website.
help do the need full.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
YUI 库对拖放有很好的支持。他们的网站上有演示。
The YUI library has nice support for drag and drop. With demos on their site.
另一个库是 Telerik 库。我曾经成功地做过类似的工作,但有点不优雅。 YUI 的 JQuery 是明智的,从长远来看,我认为值得付出努力。
当做除了简单的数据显示之外的任何事情时,我发现 GridView 很讨厌并且实时消耗。
如果从头开始编写不是一个选择,那么甚至可能值得研究 Telerik Grid(它需要付费)。他们的网格以及拖放功能可以发挥作用。我确信它们是其他具有类似功能的 .NET Web Forms 库。使用库通常比重新造轮子更容易。
Another library is the Telerik one. I managed to get something similar working once but was a little inelegant. JQuery of YUI would be wise and in the long run worth the effort I would have thought.
When doing anything more than simple data display I have found the GridView nasty and a real time drain.
If writing from scratch is not an option it might even be worth investigating the Telerik Grid (it costs). Their grid along with their drag and drop could work. I am sure they are other .NET Web Forms libraries out there with something similar. Using libraries is normally easier than recreating the wheel.
我完全推荐使用 jQuery 和 jQuery UI Javascript 库来完成此任务。请参阅 http://www.jquery.com 和 http://www.jqueryui.com
它应该可以帮助您完成所需的工作。
I totally recommend the jQuery and jQuery UI Javascript libraries for this task. See http://www.jquery.com and http://www.jqueryui.com
It should help you do the needful.