If you have a renderer where you set a css attribute on the metadata object an error will occur in the prepareData method of the GridPanelRenderer object.
line 45: convertedData[key] = column.renderer ? column.renderer(value, null, item) : value;
replacing the null with an empty object {} will fix the error but you will not have the css class of the metadata.
There is a dirty way to get it. I get the className from the rendered grid and I pass in the template(something like: grid.getView().getCell(idx1, idx2).className). This way I have the same class names on the cell in the rendered grid and in the print version. What do you think about this solution?
Is there any way I could access metadata.css?
If you have a renderer where you set a css attribute on the metadata object an error will occur in the prepareData method of the GridPanelRenderer object.
line 45: convertedData[key] = column.renderer ? column.renderer(value, null, item) : value;
replacing the null with an empty object {} will fix the error but you will not have the css class of the metadata.
There is a dirty way to get it. I get the className from the rendered grid and I pass in the template(something like: grid.getView().getCell(idx1, idx2).className). This way I have the same class names on the cell in the rendered grid and in the print version. What do you think about this solution?
Is there any way I could access metadata.css?