How to export NG-Grid data to PDF/Excel?

2,885 views
Skip to first unread message

Sudha Iyer

unread,
Mar 20, 2013, 6:51:06 AM3/20/13
to ang...@googlegroups.com
Is there a facility/feature provided by NG-Grid to export data to PDF/Excel/Flat Files?

Message has been deleted

johntom

unread,
Mar 20, 2013, 10:20:50 PM3/20/13
to ang...@googlegroups.com
There is a plugin for csv export and it will appear in footer. You can change style of button in the required file ng-grid-csv-export.js which is part of the download.
HTH
John
  
   var csvOpts = { columnOverrides: { obj: function (o) {
        return o.a + '|' + o.b;
    } } }




 $scope.gridOptions1 = {
        data: 'myData',
        columnDefs: 'myDefs2',
        showGroupPanel: true,
        showColumnMenu: true,
         plugins: [new ngGridCsvExportPlugin(csvOpts)],
        //plugins: [new ngGridCsvExportPlugin()],
        showFooter: true,
          };
Reply all
Reply to author
Forward
Message has been deleted
0 new messages