如何...如果列表数据超过100条记录,则禁用启用kendo网格过滤器。 [英] How do I...Disable enable kendo Grid filter if list data is more than 100 records.

查看:70
本文介绍了如何...如果列表数据超过100条记录,则禁用启用kendo网格过滤器。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果列表数据超过100条记录,则禁用启用kendo网格过滤器。

Disable enable kendo Grid filter if list data is more than 100 records.

推荐答案

There is no direct way to this at run time but you can tweak it around by doing  like this by hiding it with another div

<pre lang="Javascript">if(condition1){
 var width = filterBtns.eq(0).outerWidth();
        var height = filterBtns.eq(0).outerHeight();
        filterBtns.each( function(index){
            var position =


(this).offset();
(this).offset();


< div class =' 封面' > )。css({
width:width,
height:height,
position:absolute,
top:position.top,
left:position.left
})。appendTo(
("<div class='cover'>").css({ "width": width, "height": height, "position": "absolute", "top": position.top, "left": position.left }).appendTo(


这篇关于如何...如果列表数据超过100条记录,则禁用启用kendo网格过滤器。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆