jqGrid的:自定义列名的显示 [英] JqGrid : Customize column name display
问题描述
我在一个jqGrid的我展示一些信息。
我的列名应该出现在下面以同样的方式。
加拿大澳大利亚
月/年月/年
临屋是我需要怎么显示我列每列名应显示下方月/年。
截至目前我的code看起来像
colnames:[ID,加拿大,澳大利亚,美国]
这取决于你需要的究竟是什么。从 colNames
项目的文本在一般的HTML片段。所以,你可以使用< BR />
例如:
colNames:ID,加拿大< BR />月/年,澳洲< BR /&GT ;月/年,
美国< BR />月/年]
要具有列标题的高度增加,你可以包括像
CSS 的.ui-的jqGrid的.ui-的jqGrid-htable个DIV {身高:汽车}
在 ui.jqgrid.css
。
另外,您可以想,在列标题文本将被包装。在答案。
I have a jqgrid in the which i display some info..
My column name should appear in the same way as below
Canada Australia
Month / Year Month / Year
Tha is how i need to display my columns each column name should display Month/Year below it.
as of now my code looks like
colnames: [Id,Canada,Australia,Usa]
It's depend on what you need exactly. The text from colNames
items is in general HTML fragment. So you can use <br/>
for example:
colNames: ["Id", "Canada<br/>Month / Year", "Australia<br/>Month / Year",
"Usa<br/>Month / Year"]
To have the height of the column headers increased you could include CSS like
.ui-jqgrid .ui-jqgrid-htable th div { height: auto }
after ui.jqgrid.css
.
Alternatively you could want that the text in column header will be wrapped. The case are discussed before in the answer.
这篇关于jqGrid的:自定义列名的显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!