禁用 AjaxControlToolkit 中两个不同 ReorderList 之间的拖放

发布于 2024-08-09 15:09:49 字数 224 浏览 13 评论 0原文

我在一个页面上有几个重新排序列表。

每个列表都通过回发添加了项目,这会更新列表。 PostBackOnReorder 为 true,并且我们在 OnItemReorder 上连接了一个事件处理程序。

问题在于,拖放似乎允许将一个项目从一个列表拖到另一个列表(这是我们不想要的),并且当它被放下时,该项目会消失,直到另一个项目被添加到列表中。

有什么方法可以禁止将项目放入另一个列表中吗?

I have several ReorderLists on a page.

Each list has items added to it via a postback, which updates the list.
PostBackOnReorder is true, and we have an event handler hooked up on OnItemReorder.

The problem is that the drag and drop seems to allow for an item to be dragged from one list to another (which is something we do not want), and when it is dropped, the item disappears until another one is added to the list.

Is there any way to disable dropping an item into another list?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

请你别敷衍 2024-08-16 15:09:49

据我从一些调试来看,这是控件本身的问题。
我已修补源以使用 ClientID 而不是 ID 来区分两个不同的列表,并在此处

As far as I could tell from some debugging, this is a problem with the control itself.
I've patched the source to use ClientID instead of ID to differenciate between two different lists and created a bug report here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文