Telerik MVC 网格问题在插入模式下无编辑模式
你好 我在 ajax 模式下有 telerik mvc 网格,并且启用了编辑。在我的场景中,我必须仅使用插入模式,因此我禁用了编辑模式。但是当我运行时,单击“添加新记录”时出现 javascript 错误。示例项目可以从 这里
HI
I have telerik mvc grid in ajax mode and editing is enabled. In my scenario i have to use only the insert mode so I disabled the edit mode. but when I run i get the javascript error on click of "Add New Record". Sample project can be downloaded from Here
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我通过以下方式使其发挥作用:
现在,当我只插入一个字段时,这才起作用。如果您有多个列,您可能需要根据您的规格对其进行自定义。但这是可行的。同样,它也适用于详细视图网格。
希望这有帮助...
I got this to work by the following:
Now, this worked when I only had one field being inserted. If you have multiple columns, you may need to customize it to your specifications. But it is do-able. As well, it worked in a detail view grid.
Hope this helps...
如果您在提供示例项目时正在寻找官方支持渠道,请将您的请求发布到其网站上的 telerik MVC 论坛。
If you are looking for an official support channel as you provided a sample project, post your request to the telerik MVC forums on their site.
有同样的问题。答案是内联,需要编辑按钮在那里,因此使用内联模式插入会中断
此链接涵盖了这一点并进行了修复。
http://www.telerik .com/community/forums/aspnet-mvc/grid/insert-only-with-server-editing.aspx
Had the same issue. The answer is in-line needs the edit buttons to be there, so with in-line mode the insert breaks
This link covers this and has a fix.
http://www.telerik.com/community/forums/aspnet-mvc/grid/insert-only-with-server-editing.aspx