【问题标题】:Telerik MVC Grid filterBy not workingTelerik MVC 网格过滤器不工作
【发布时间】:2011-11-16 21:09:42
【问题描述】:

【问题讨论】:

    标签: jquery asp.net-mvc-3 telerik telerik-grid telerik-mvc


    【解决方案1】:

    您提到的应用程序使用了隐藏字段,这些隐藏字段通过 js 在网格的DataBound 事件上更新,例如

    $('#currentPage').val(currentPage);
                $('#orderBy').val(orderBy);
                $('#groupBy').val(groupBy);
                $('#filterBy').val(filterBy);
    

    但是,如果您查看过滤时网格发布的键,它看起来像
    因此,在该应用程序中,如果您尝试访问 _index 方法中的过滤信息,该方法以 ajaxically 的方式向网格提供数据,您必须将参数名称从 filterBy 更改为 filter like

    public ActionResult _Index(string page, string orderBy, string filterBy, string groupBy)
    

    【讨论】:

      猜你喜欢
      • 2013-05-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-02-22
      • 2011-01-09
      相关资源
      最近更新 更多