| | |
| | | //è¡¨æ ¼çæ°æ®å¡«å
|
| | | for (var i = 0; i < colNames.length; i++) { |
| | | var dataCols = dataCol[i].split('|'); |
| | | cols.push({ "ColumnName": colNames[i], "IsHide": dataCols[1] == 1 ? true : false, "Alignment": dataCols[2], "ColumnWidth": dataCols[3] }) |
| | | var ColumnName_Other = dataCols[4] == dataCols[5] ? "" : dataCols[4]; |
| | | cols.push({ "ColumnName": colNames[i], "IsHide": dataCols[1] == 1 ? true : false, "Alignment": dataCols[2], "ColumnWidth": dataCols[3], "ColumnName_Other": ColumnName_Other, "ColumnName_real": dataCols[5] }) |
| | | } |
| | | option.data = cols; |
| | | table.render(option); |
| | |
| | | { field: 'ColumnName', title: 'åå', width: 100 } |
| | | , { file: 'IsHide', title: 'æ¯å¦éè', width: 100, templet: '#IsHide' } |
| | | , { field: 'Alignment', title: '坹齿¹å¼', width: 100, templet: '#Alignment' } |
| | | , { field: 'ColumnWidth', title: 'å宽', width: 100,edit: 'text' } |
| | | , { field: 'ColumnWidth', title: 'å宽', width: 100, edit: 'text' } |
| | | , { field: 'ColumnName_Other', title: 'å«å', width: 120, edit: 'text' } |
| | | , { field: 'ColumnName_real', title: 'å«å对åºåå', width: 120, edit: 'text',hide:"true" } |
| | | ]] |
| | | }; |
| | | } |