写一个Renderer
view plaincopy to clipboardprint?
//呈现Grid单元格内容时,如果内容超长,则换行显示
var renderAutoNewLine = function(v) {
return "<div style="word-wrap:break-wordword-break: break-all" mce_style="word-wrap:break-wordword-break: break-all">" + v + "</div>"
}
为需要自动换行的列指定Renderer:
view plaincopy to clipboardprint?
<ext:Column Sortable="true" Width="120" DataIndex="GovernmentAgency" Css="table-layout" Align="Center"
Header="发证机关">
<Renderer Fn="renderAutoNewLine" />
</ext:Column>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)