jquery easyUI datagrid 的宽度能不能设置成百分比
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了jquery easyUI datagrid 的宽度能不能设置成百分比相关的知识,希望对你有一定的参考价值。
参考技术A 从1.4版本开始可以把所有组件的大小按百分比设置,也可以把DataGrid列宽度设置为百分比。easyui官网原文如下:Improvement
The fluid/percentange size is supported now for all easyui components.
menu: Add 'showItem', 'hideItem' and 'resize' methods.
menu: Auto resize the height upon the window size.
menu: Add 'duration' property that allows the user to define duration time in milliseconds to hide menu.
validatebox: Add 'onBeforeValidate' and 'onValidate' events.
combo: Extended from textbox now.
combo: Add 'panelMinWidth','panelMaxWidth','panelMinHeight' and 'panelMaxHeight' properties.
searchbox: Extended from textbox now.
tree: The 'getRoot' method will return the top parent node of a specified node if pass a 'nodeEl' parameter.
tree: Add 'queryParams' property.
datetimebox: Add 'spinnerWidth' property.
panel: Add 'doLayout' method to cause the panel to lay out its components.
panel: Add 'clear' method to clear the panel's content.
datagrid: The user is allowed to assign percent width to columns.
form: Add 'ajax','novalidate' and 'queryParams' properties.
linkbutton: Add 'resize' method.本回答被提问者和网友采纳
JQuery EasyUI DataGrid 获取属性值
在Jquery EasyUI中返回操作的时候,根据当前页返回到数据选取页:
- var grid = $(‘#datagrid‘);
- var options = grid.datagrid(‘getPager‘).data("pagination").options;
- var curr = options.pageNumber;
- var total = options.total;
- var max = Math.ceil(total/options.pageSize);
以上是关于jquery easyUI datagrid 的宽度能不能设置成百分比的主要内容,如果未能解决你的问题,请参考以下文章