| | |
| | | //è¡¨æ ¼çæ°æ®å¡«å
|
| | | 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] }) |
| | | cols.push({ "ColumnName": colNames[i], "IsHide": dataCols[1] == 1 ? true : false, "Alignment": dataCols[2], "ColumnWidth": dataCols[3] }) |
| | | } |
| | | option.data = cols; |
| | | table.render(option); |
| | |
| | | } else { |
| | | //é»è®¤ä¸éä¸ æ¾ç¤ºåä½å±
å·¦ è¡¨æ ¼çæ°æ®å¡«å
|
| | | for (var i = 0; i < colNames.length; i++) { |
| | | cols.push({ "ColumnName": colNames[i], "IsHide": false, "Alignment": "L" }) |
| | | cols.push({ "ColumnName": colNames[i], "IsHide": false, "Alignment": "L", "ColumnWidth": 120 }) |
| | | } |
| | | 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, templet: '#ColumnWidth', edit: 'text' } |
| | | ]] |
| | | }; |
| | | } |