获取datagrid表格标题头
var
datagridTitle =
new
Array();
var
fields = $(
"#datagrid"
).datagrid(
'getColumnFields'
);
for
(
var
i = 0; i < fields.length; i++) {
var
option = $(
"#datagrid"
).datagrid(
'getColumnOption'
, fields[i]);
if
(option.field !=
"checkItem"
&& option.hidden !=
true
) {
//过滤勾选框和隐藏列
datagridTitle.push(option.title);
}
}