ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

External Scope and Export are not cooperating

Open redapplewithleaves opened this issue 11 years ago • 0 comments

Hi,

I am probably just missing something, but I can't get the external scope button and the export to play well together. In this case, the button in the top right corner does appear but the export options are not appearing:

image

This is what is my grid div: image

And here is the grid options: $scope.gridOptions = { columnDefs:[ { name: 'name' }, { name: 'gender'}, { name: 'ShowScope', cellTemplate:'' } ], enableGridMenu: true, enableSelectAll: true, exporterCsvFilename: 'myFile.csv', exporterPdfDefaultStyle: {fontSize: 9}, exporterPdfTableStyle: {margin: [30, 30, 30, 30]}, exporterPdfTableHeaderStyle: {fontSize: 10, bold: true, italics: true, color: 'red'}, exporterPdfHeader: { text: "My Header", style: 'headerStyle' }, exporterPdfFooter: function ( currentPage, pageCount ) { return { text: currentPage.toString() + ' of ' + pageCount.toString(), style: 'footerStyle' }; }, exporterPdfCustomFormatter: function ( docDefinition ) { docDefinition.styles.headerStyle = { fontSize: 22, bold: true }; docDefinition.styles.footerStyle = { fontSize: 10, bold: true }; return docDefinition; }, exporterPdfOrientation: 'portrait', exporterPdfPageSize: 'LETTER', exporterPdfMaxGridWidth: 500, exporterCsvLinkElement: angular.element(document.querySelectorAll(".custom-csv-link-location")), onRegisterApi: function(gridApi){ $scope.gridApi = gridApi; } };

Here is the plunker: http://plnkr.co/edit/0FxIsOITI8Ih6WRfxkMX?p=preview

What am I missing?

redapplewithleaves avatar Mar 06 '15 23:03 redapplewithleaves