kendoGrid filter过滤

过滤主要分为三种(都是针对列进行过滤):

1.多条件查询

$("#grid").kendoGrid({
    filterable:true
})                

2.单条件查询

这种查询方式,是直接出来查询的一行,可以在列设置里面设置默认的查询方式

$("#grid").kendoGrid({
    filterable:{
         mode:'row'    
    },
   columns:[
      { field: name, title:title, width: 100,
            filterable:{ cell:{ 
                operator:'contains',      //默认模糊查询
               suggestionOperator:'contains',    //查询提示内容
               showOperators:false       //右侧过滤按钮是否去掉
             } } 
     }
  ] 
})                

3.带checkbox的查询 

猜你喜欢

转载自www.cnblogs.com/zsj-02-14/p/9590949.html