When exporting a grid to PDF, the columns are losing formatting of alignment. We have a column that we setup the CSSClass to align to the right, When
CssClass
="igg_ItemRAlign",
.igg_ItemRAlign
{
text-align:right !important;
}
When exporting to PDF, only every other row is aligned to the right, the rest are left aligned which is the default for our CssClass for the grid. Is this a bug or is there a workaround to this?
Hello Jabof,
I tested this with the latest service release of 10.3 version (10.3.20103.2056)
http://samples.infragistics.com/2010.3/WebFeatureBrowser/contents.aspx?showCode=true&t=WebDataGrid/Exporters/WebDataGrid_DocumentExport.aspx~srcview.aspx?path=~srcview.aspx?path=WebDataGrid/Exporters/WebDataGrid_DocumentExport.src
<style type="text/css">
text-align: right !important;
</style>
<ig:BoundDataField DataFieldName="ProductName" Key="ProductName" Width="200px" CssClass="igg_ItemRAlign">
<Header Text="ProductName" />
</ig:BoundDataField>
I was not able to encounter the issue.
Can you please share an isolated sample reproducing the issue?
Hope hearing from you
Tsvetelina, very easy to reproduce. Attached is a very very very simple example. FYI, in the meantime, I have found that if you move the CSS style outside of the infragistics folders, it works properly. I had originally defined my class in the ig_dataGrid.css.