EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: zhinly on November 19, 2013, 05:10:08 AM



Title: about datagrid "fit" attribute help
Post by: zhinly on November 19, 2013, 05:10:08 AM
Hi,
 I hava a question for datagrid fit the layout of center, the center put in tab , datagrid in tab. But the grid's height less "30px" for the tab,so my some data don't to show,and the pagination to show.here hava a different that I set two tollbar,like this :

            toolbar:"#device-str-toolbar1,#device-str-toolbar",
            pagination: true,
            pageSize: 30,
            idField: 'id',
            striped: true,
            fitColumns: true,
            fit: true,

thanks for your help!


Title: Re: about datagrid "fit" attribute help
Post by: hjzhbb7758 on November 19, 2013, 06:50:26 AM
fit 无效是因为不知道你dg 外层元素的大小。