Currently, a summary cell is formatted the same as its corresponding 'editable' object. This is problematic when you want the summary cells to be formatted differently than the grid cells. For example, say a grid column allows integers only and its editable object is:
{ type: 'int', inTag: 'maxlength=5', min: 0, max: 10000, max_allowed: '9,999' }
However, the summary value must be the average of the columns, in which case, the summary editable object might be something like:
{ type: 'float:2' }
A recommended solution could be to add an extra 'editable' column attribute for a summary cell. Then, the getCellEditable() function could be passed a 'summary' flag and it would then determine which of the 'editable' objects to return based upon that 'summary' flag.
I would be happy to supply more justification if you feel it is needed.
Owner Name | vitmalina |
Repo Name | w2ui |
Full Name | vitmalina/w2ui |
Language | JavaScript |
Created Date | 2011-04-12 |
Updated Date | 2022-06-22 |
Star Count | 2000 |
Watcher Count | 179 |
Fork Count | 665 |
Issue Count | 255 |
Issue Title | Created Date | Updated Date |
---|