【问题标题】:How to modify paging bar using MvcJqGrid如何使用 MvcJqGrid 修改分页栏
【发布时间】:2012-10-02 19:42:56
【问题描述】:

我刚开始使用 MvcJqGrid 库,太棒了!

我有以下代码:

@(Html.Grid("jqgUserGrid")
    .SetUrl(@Url.Action("GetUsers"))
    .SetRequestType(MvcJqGrid.Enums.RequestType.Post)
    .AddColumn(new Column("ID")
        .SetLabel("ID")
        .SetSearch(false))
    .AddColumn(new Column("UserLogin")
        .SetLabel("User Login")
        .SetSearch(true))
    .SetHeight(300)
    .SetPager("jqgUserPager")
)

这一切都很好,但我的寻呼机上没有任何添加/编辑/删除按钮。

我一直在寻找一些说明如何添加这些的文档,但没有看到任何内容。

我必须以老式的 jQuery 方式添加这些,还是有一种流畅的方式来添加这些?

【问题讨论】:

    标签: asp.net-mvc jqgrid pagination fluent-interface mvcjqgrid


    【解决方案1】:

    我们没有在 MvcJqGrid 中包含编辑支持,恐怕你必须走老式的 jquery 方式。

    抱歉,我之前没有注意到您的问题。

    编辑 最近增加了对内联编辑的基本支持:http://mvcjqgrid.skaele.it/Home/Edit

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-04-07
      • 2013-05-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-11-30
      • 2017-12-01
      相关资源
      最近更新 更多