Telerik MVC Q1 2011 带有 Ajax 编辑的网格在序列化字典对象时中断
Telerik MVC 2011 年第 1 季度的第一个重大变更如下:
自 Q3 2010 Service Pack 1(程序集版本 2010.3.1318)以来的变更
重大变更
整体Ajax编辑时将数据项发送到服务器
现在,网格在 ajax 编辑期间将整个数据项对象发送到服务器。在此之前,仅提交可编辑字段。
不确定这是否是我的问题的原因,但启用了 Ajax 编辑的网格现在确实损坏了,而之前它工作得很好。不幸的是,我不知道该怎么做才能解决它。
我假设,如果您提供有关 Telerik 相关问题的帮助,您还可以访问我在 Telerik 论坛上的帖子< /a>.在那里,我附上了两个项目作为问题的示例。它们是相同的,只是一个使用 Telerik MVC Q3 2010 并且可以工作,另一个使用 Telerik MVC Q1 2011 并且无法工作。
异常详细信息: System.ArgumentException:字典的序列化/反序列化不支持类型“blah”,键必须是字符串或对象。
请查看示例,并让我知道如何使用最新版本恢复业务。
谢谢你!
Telerik MVC Q1 2011 has the following listed as the very first breaking change:
Changes from Q3 2010 Service Pack 1 (Assembly version 2010.3.1318)
Breaking Changes
The whole data item is sent to the server during Ajax editing
The grid now sends the whole data item object to the server during ajax editing. Before that only editable fields were submitted.
Not sure whether that is the cause of my problem or not, but my grid with Ajax editing enabled is indeed broken now when it was working fine before. Unfortunately, I have no idea what to do to fix it.
I am going to assume that if you are offering help with Telerik-related issues, you also have access to my post on the Telerik forum. There, I have two projects attached as an example of the problem. They are identical except one is using Telerik MVC Q3 2010 and works, and the other is using Telerik MVC Q1 2011 and does not work.
Exception Details: System.ArgumentException: Type 'blah' is not supported for serialization/deserialization of a dictionary, keys must be strings or objects.
Please check out the examples, and let me know how to get back in business with the latest version.
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我猜这只是一个错误。
http://www.telerik.com/community/forums/aspnet-mvc/grid/q1-2011-breaks-ajax-edit-when-serializing-dictionary-object.aspx
Guess it was just a bug.
http://www.telerik.com/community/forums/aspnet-mvc/grid/q1-2011-breaks-ajax-edit-when-serializing-dictionary-object.aspx