We are having an issue where ‘0’ values in our grid are not exported to Excel. I have been able to track this issue to the makeNode function. The issue appears to be at the if( options.text ) because our text value is ‘0’, which is also a falsy value the text is not placed in the node.
Can you please recommend a work around for this or provide a patched version.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
makeNode : function ( root, elemName, options ) { var currNode = root.createElement( elemName ); if ( options ) { if ( options.attr ) { $(currNode).attr( options.attr ); } if( options.children ) { $.each( options.children, function ( key, value ) { currNode.appendChild( value ); }); } if( options.text ) { currNode.appendChild( root.createTextNode( options.text ) ); } } return currNode; }, |
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top