AjaxControlToolkit ReorderList 停止工作
我正在使用 AjaxControlToolkit 重新排序列表。一切都运转良好。然后我将网站升级到.net 4 和 Visual Studio 2010。现在重新排序不再起作用。我做了一些搜索,建议升级到最新版本的ajaxtoolcontrol工具包。我已经把dll放入了,它的版本是4.1.40412.2。我检查了该网站的参考资料,它显示版本为 4.1.40412.0。当我运行页面时,我无法拖动该行的图标。希望有人能指出我正确的方向。
<cc1:ReorderList ID="roTask" runat="server" DataKeyField="CJASI_TaskID" SortOrderField="QuestionNo"
PostBackOnReorder="false" DragHandleAlignment="Left" Width="97%">
<ItemTemplate>
<div class="Reorderlist_ItemTemplate">
<asp:Label ID="lblQuestion" runat="server" Text='<%#databinder.eval(container.dataitem,"Question") %>' />
<asp:HyperLink ID="hlTaskQuestion" runat="server" NavigateUrl='<%#"AddEditTask.aspx?ClassID=" & databinder.eval(container.dataitem,"CJASI_ClassificationID") & "&TaskID=" & databinder.eval(container.dataitem,"CJASI_TaskID") & "&CatID=" & request.querystring("CatID") %>'
Text="[Edit]" />
</div>
</ItemTemplate>
<DragHandleTemplate>
<div class="Reorderlist_DragHandleTemplate">
<asp:Image ID="imgMove" runat="server" ImageUrl="~/Images/imgMove.gif" />
</div>
</DragHandleTemplate>
<ReorderTemplate>
<asp:Panel ID="Panel1" runat="server">
</asp:Panel>
</ReorderTemplate>
</cc1:ReorderList>
I am using the AjaxControlToolkit reorderlist. all was working well. then i upgraded the website to .net 4 and visual studio 2010. Now the reorder is no longer working. I did some searching and it was suggested to upgrade to the latest version of ajaxtoolcontrol toolkit. I've put the dll into and it's version 4.1.40412.2. I've checked the references for the website and it reads that is is version 4.1.40412.0. When i run the page, i am not able to drag the icon for the row. Was hoping someone could point me in the right direction.
<cc1:ReorderList ID="roTask" runat="server" DataKeyField="CJASI_TaskID" SortOrderField="QuestionNo"
PostBackOnReorder="false" DragHandleAlignment="Left" Width="97%">
<ItemTemplate>
<div class="Reorderlist_ItemTemplate">
<asp:Label ID="lblQuestion" runat="server" Text='<%#databinder.eval(container.dataitem,"Question") %>' />
<asp:HyperLink ID="hlTaskQuestion" runat="server" NavigateUrl='<%#"AddEditTask.aspx?ClassID=" & databinder.eval(container.dataitem,"CJASI_ClassificationID") & "&TaskID=" & databinder.eval(container.dataitem,"CJASI_TaskID") & "&CatID=" & request.querystring("CatID") %>'
Text="[Edit]" />
</div>
</ItemTemplate>
<DragHandleTemplate>
<div class="Reorderlist_DragHandleTemplate">
<asp:Image ID="imgMove" runat="server" ImageUrl="~/Images/imgMove.gif" />
</div>
</DragHandleTemplate>
<ReorderTemplate>
<asp:Panel ID="Panel1" runat="server">
</asp:Panel>
</ReorderTemplate>
</cc1:ReorderList>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在 ajax control toolkit 3.5 和 Visual Studio 2010 中遇到了同样的问题。
只需添加
ClientIDMode="AutoID"
即可解决问题。I had the same problem with ajax control toolkit 3.5 and visual studio 2010.
Just adding
ClientIDMode="AutoID"
solved the problem.