Kendo.MVC过滤器

时间:2013-11-26 10:33:25

标签: filter kendo-ui kendo-grid

我有一个剑道网格,它有一个剑道过滤器,我在剑道过滤器中设置了额外的(假),并使用下面的代码删除了下拉列表。这里只有当我提供完整的值时才会进行过滤,而是需要使用起始值

进行过滤
---------------------------script start
<script type="text/javascript">

function filterMenuInit(e) {
    var firstValueDropDown = e.container.find("select:eq(0)").data("kendoDropDownList");

    setTimeout(function () {
        firstValueDropDown.wrapper.hide();
    });
}

</script>

 ------------------------script End
 @(Html.Kendo().Grid(Model) //Bind the grid to ViewBag.Products
  .Name("grid")
  .Columns(columns =>
  {


      columns.Bound(Commission => Commission.CreatedDate).Format("{0:MM/dd/yyyy hh:mm tt}").Filterable(f => f.UI("DateTimeFilter"));
      columns.Bound(Commission => Commission.Status);
      columns.Bound(Commission => Commission.Branch);
      columns.Bound(Commission => Commission.ULN);
      columns.Bound(Commission => Commission.MgrAmount);
      columns.Bound(Commission => Commission.PayFrequency);
      columns.Bound(Commission => Commission.CalcBasis);
  })
                        .Pageable() // Enable paging
                        .Sortable() // Enable sorting
                        .Filterable(f => f.Extra(false))

                      .Events(e => e.FilterMenuInit("filterMenuInit"))    
                      .Pageable(pager => pager
                          .PageSizes(new[] { 5, 10, 15 }))


                          )

0 个答案:

没有答案