Razor - 可编辑网格 - 什么方法?
我非常想知道,还不知道该决定使用什么。 所以我想要网格并编辑其行的数据。
我正在使用 MVC3 Razor,我知道这些可能性: - jqGrid 剃刀 - 淘汰网格剃刀 - 我不知道如何使其可编辑网格?是否有可能,或者这只是为了显示数据。 - 网络网格、Razor
我不喜欢使用 Telerik 控件! 您能告诉我制作可编辑网格的最佳方法是什么吗?如果我不需要可编辑网格怎么办?为什么要使用其中一种或另一种方式? 所有这些都在 Razor 页面中。
I am very much wondering and don't know yet what to decide to use.
So I want to have grid and to edit its row's data.
I am working with MVC3 Razor, i know for these posibilities:
- jqGrid Razor
- knockout grid Razor - i don't know how to make it editable grid? Is it possible at all, or is this just for displaying data.
- web grid , Razor
I don't like to use Telerik controls!
Would you pls advice me what is the best approach to make editable grid and what if i don't need editable grid? Why to use one or other of the ways?
And all that in Razor page.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
ShieldUI的网格还支持很多编辑模式、场景和发送更新本地或任何远程端点。
可以在这里找到一个很好的开始示例:
http://demos .shieldui.com/mvc/grid-editing/editing-restful-web-service
ShieldUI's grid also supports a lot of editing modes, scenarios and sending the updates locally or to any remote endpoint.
A good example to start can be found here:
http://demos.shieldui.com/mvc/grid-editing/editing-restful-web-service
jqGrid 确实支持编辑,您可以在 http://www.trirand.com 查看一些示例/blog/jqgrid/jqgrid.html 或阅读 http://www.trirand.com/jqgridwiki/doku.php?id=start
jqGrid definitely does support editing, you can see some examples at http://www.trirand.com/blog/jqgrid/jqgrid.html or read the documentation at http://www.trirand.com/jqgridwiki/doku.php?id=start
使用以下代码进行编辑,与添加、删除相同。
对于视图,
对于控制使用以下代码,
您还可以将模型特定类用于 添加、编辑 & 删除。这里 ReadOnly() 用于未编辑的列。如果您需要控制列值,请使用同一列,但不带ReadOnly(),而仅隐藏。
我认为所有人都喜欢使用这段代码。
Use The Following Code For Editing and Same as Add, Delete.
For View,
For Control Use the following Code,
you can also use your Model specific Class for Add, Edit & Delete. Here ReadOnly() is used for unedited column. If you need the column value in control then use same column without ReadOnly() and just Hidden.
I think all are enjoy using this code.