Opened 8 years ago
Closed 8 years ago
#16723 closed feature (patchwelcome)
EnhancedGrid : exporter with formatters bug
Reported by: | Xiou | Owned by: | Evan |
---|---|---|---|
Priority: | undecided | Milestone: | tbd |
Component: | DojoX Grid | Version: | 1.7.3 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
On export, "technical" values are not replaced by "formatted" values.
Sorry, I don't know how to create a patch...
"Class" dojox.grid.enhanced.plugins.exporter._ExportWriter:
_getExportDataForCell: function(rowIndex, rowItem, cell, grid){ var data = (cell.get || grid.get).call(cell, rowIndex, rowItem); if(this.formatter){ return this.formatter(data, cell, rowIndex, rowItem); }else{ return data; } },
Must be replaced by:
_getExportDataForCell: function(rowIndex, rowItem, cell, grid){ var data = (cell.get || grid.get).call(cell, rowIndex, rowItem); if(cell.formatter){ return cell.formatter(data, cell, rowIndex, rowItem); }else{ return data; } },
Change History (3)
comment:1 Changed 8 years ago by
comment:2 Changed 8 years ago by
comment:3 Changed 8 years ago by
Resolution: | → patchwelcome |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
You can override the _getExportDataForCell function by simply placing fixed function in your exporter implementation.