|
楼主 |
发表于 2013-10-8 09:01:54
|
显示全部楼层
DataGridTag 加入
//截取字符长度
if(column.getSubstring() != null && !"".equals(column.getSubstring())){
try
{
Integer length = Integer.valueOf(column.getSubstring());
sb.append(",formatter:function(value,rec,index){");
sb.append("if(value.length > "+length+"){return value.substring(0,"+length+")+'...';}else{return value;}}");
}
catch (Exception e)
{
logger.debug("字符串转化异常");
}
} |
|