Kendo ui网格大小调整还应调整其内部与网格高度相同的所有选项卡。 [英] Kendo ui grid resizing should also resize all the tabs inside it of same height as of grid.

查看:74
本文介绍了Kendo ui网格大小调整还应调整其内部与网格高度相同的所有选项卡。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个kendo UI Grid。该网格中有3个可切换的标签。当我调整网格大小并转到每个标签时,3个标签的高度应与网格相同。

解决方案

您可以修改此方法。在这里你可以得到剑道网格的高度和宽度。然后将你的逻辑应用于标签。



 function resizeGrid(){
var gridElement =


#grid);
var dataArea = gridElement.find( .K并网内容);
var newHeight = gridElement.parent()。innerHeight() - 2 ;
var diff = gridElement.innerHeight() - dataArea.innerHeight();
gridElement.height(newHeight);
dataArea.height(newHeight - diff);
}


(function(){resizeGrid();});


There is a kendo UI Grid.There are 3 tabs in that grid which are togglable.When i resize the grid & go to each tabs,the height of the 3 tabs should be same as of grid.

解决方案

you can modify this method. here you can get height and width of kendo grid . then apply your logic for tab.

function resizeGrid() {
    var gridElement =


("#grid"); var dataArea = gridElement.find(".k-grid-content"); var newHeight = gridElement.parent().innerHeight() - 2; var diff = gridElement.innerHeight() - dataArea.innerHeight(); gridElement.height(newHeight); dataArea.height(newHeight - diff); }


(function () { resizeGrid();});


这篇关于Kendo ui网格大小调整还应调整其内部与网格高度相同的所有选项卡。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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