Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Disable enable kendo Grid filter if list data is more than 100 records.
Posted

1 solution

XML
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();
            $("<div class='cover'>").css({
                "width": width,
                "height": height,
                "position": "absolute",
                "top": position.top,
                "left": position.left
            }).appendTo($("body"));
        });
}

JavaScript
else {
 $(".cover").remove();
    }
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900