easyui datagrid 数据显示不完全,一个个格里面数据多,显示不全

2025-01-31 01:26:48
推荐回答(2个)
回答1:

.easyui-datagrid .datagrid-thead{
padding:6px 4px;
overflow: hidden;
text-overflow:ellipsis;
white-space: nowrap;
}
给列上加
formatter: function(value,row,index){  
 return ''+value+''  
}


这样   当鼠标移上时就会显示多出来的数据

回答2:

var width = $(window).width()-80;
var height = $(window).height()-120;
stView_layout = $('#stView_layout').layout({
width: width,
height: height
});
station_view = $('#stationView').window({
title: '测站导航',
left:50,
top:80,
width: width,
modal: false,
shadow: false,
closed: true,
height: height,
onResize:function(w,h){
if(stView_treegrid){
stView_treegrid.treegrid({
width:w-20,
height:h-260
});
}
}
});