balri771
Newbie
Posts: 9
|
|
« Reply #2 on: August 04, 2013, 10:39:24 PM » |
|
hello,
I know how to use the fit ,but it doesn't work. Below is my code. <div data-options="region:'west',title:'权限组信息',split:true" style="width:150px;"> <div> <ul id="treeqm" width="98%" class="easyui-tree" data-options=" url: '@Url.Content("~/Permission/ListPermTree")', onClick: function (node) { $('#dg').datagrid({ url:'@Url.Content("/Permission/List")?qxzid='+node.id, pagination:true, singleSelect:true, rownumbers:true, pageList:[15,20,30], columns:[[ {field:'XM',title:'@resBaseinfo.name',width:150}, {field:'RYBH',title:'@resBaseinfo.card_rybh',width:120}, {field:'KXLH',title:'@resBaseinfo.card_kh',width:100}, {field:'BMMC',title:'部门',width:100}, {field:'KMBH',title:'@resBaseinfo.card_kmbh',width:100}, {field:'KZT',formatter:formatKZT,title:'@resBaseinfo.card_kzt',width:100} ]] }); } "></ul> </div> </div>
<div id="w_list_print" > <table id="dg" width="80%" class="easyui-datagrid" data-options="url:'@Url.Content("~/Permission/List")', pagination:true, singleSelect:true, rownumbers:true, pageList:[15,20,30], fit:true, columns:[[ {field:'XM',title:'@resBaseinfo.name',width:150}, {field:'RYBH',title:'@resBaseinfo.card_rybh',width:120}, {field:'KXLH',title:'@resBaseinfo.card_kh',width:100}, {field:'SSBMJG',title:'部门',width:100}, {field:'KMBH',title:'@resBaseinfo.card_kmbh',width:100}, {field:'KZT',formatter:formatKZT,title:'@resBaseinfo.card_kzt',width:100} ]]"> </table> </div>
I click on the left side of the tree,data loading to the right,but I add the fit property,the data cann't loaded and the pagination don't show !
|