Exporting hidden columns in materialui datagrid - material-ui

is there anyway to hide a column in a materialui datagrid but also include it in exports? (Print, excel etc)

Related

How to display two columns vertically below each other in ag-grid?

Similar to how the Devexpress property TcxGridBandedColumnPosition.RowIndex works in DataGrid
Example from devexpress:
https://docs.devexpress.com/VCL/171164/ExpressQuantumGrid/task-based-help/banded-table-view
In the example, we have a band "Issue Info" and two columns located one below the other
As far as I understand there is only one way and that is to write custom renders if it possible with current API.

Adding new columns in ag grid export excel

How to add new columns in ag-grid in the exported excel in reactjs. I think ag-grid dynamically export excel on right click. Where does this code exactly reside and how to edit it so that I can add an extra column only in exported excel.
You should be able to back-track from the ag-grid instance, the ag-grid instance is created as shown below,
new agGrid.Grid(divElement, gridOptions);
// divElement : document element for the grid
// gridOptions: param object having all grid related information
The gridOptions , will have column definitions in it, you can try disabling visibility of a column by setting column's display property i.e., hide to false, so that on export you have the column field. For more read refer here

SAPUI5 add icon after column header text

I have a custom table with several columns. Each column has a header text (e.g. name or age). By clicking the header text, the column gets sorted. I want to add a sap icon (sort-ascending / sort-descending) after the header text as soon as it is clicked.
This should symbolize how the column is sorted. I cant use the standard sort icons. How can I do that for my custom table? How to add a style class for this case maybe?
If you are using the Grid table by default will show the sorting icon.

ag-Grid: All rows in edit mode when loaded

I have ag-grid which is editable.
I want all rows in edit mode by default when grid is loaded. I know that ag-grid doesn't support this feature. But would like to know that whether there is any way to achieve this ?
I have all type of columns in my grid, text, select, customCellEditor

How to create Excel document with proper cell alignment using Ireport?

I can able to create Excel document using Jasper Report but the problem is that fields are not properly aligned in the cells of excel sheet and all the data are populated in the plain surface without any cells.i.e) I cannot see any cells in the data populated area.Can u please give me suggestion to make proper Excel document with cell alignment.
I had this same struggle and came up with the following. At the time, I was using iReport (3.0.0) and was able to generate a good xls file. It may be easier in newer versions of iReport and/or JasperReports. Here's what I did:
I created a new report using the new report wizard and chose a tabular template. This creates a report with all of the fields in a line with no gaps between them. It is very key that fields are vertically aligned, that all the same height, and that there are no gaps between fields.
I removed all of the extra objects created (title, extra lines) except for the fields and the headers. I then collapsed all of the bands except the column header and detail bands.
On the report properties, I checked "Ignore pagination"
I changed the text color of the header fields, otherwise it ends up as white on white.
The rest of the important options can be found by selecting Options -> Export Options from the menu and then scrolling down to the "XLS Exporter" section. I attached a screen shot of the options I chose. You can experiment with the settings, but I found (through trial and error) that the options I ended up with work pretty well. These options are not stored in the report def file, they are attributes of the thing generating the report. iReport takes care of it when testing in that environment. We are using custom Java to generate the report in production and we set the attributes there.
XLS Exporter Dialog http://www.imagechicken.com/uploads/1270760205041768200.png