treegrid 宽度自适应
$("#tt").treegrid({
url:
idField: 'id',
treeField: ,
fitColumns: true,
sortable: true,
cascadeCheck: true,
singleSelect: false,
// width:800,
width:getWidth(0.95),
})
function getWidth(percent){
return $(window).width() * percent;
}
$("#tt").treegrid({
url:
idField: 'id',
treeField: ,
fitColumns: true,
sortable: true,
cascadeCheck: true,
singleSelect: false,
// width:800,
width:getWidth(0.95),
})
function getWidth(percent){
return $(window).width() * percent;
}