iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
I was told some time ago that the alignment of data in an exported pdf file should follow the alignment of the columns in the WebGrid. I'm using WebGrid 6.0.216 but all my columns are left-aligned when exporting to a pdf even though many of them are centered or right aligned in the WebGrid.How can the alignment in an exported pdf file be changed? It looks horrible with left-aligned numbers.
// Staffan E.
Staffan,
I don't think Exporting can take account CssClass styles because CssClass is generally used in client-side, not server-side. To make it works in both client and server, you can continue using CssClass for client-side styles and add the server style programmatically in Exporting event.
Eg, grid.LayoutSettings.HeaderStyle.HorizontalAlign = HorizontalAlignment.Right;
Hope this helps.
Yes, It should follow the alignment of your WebGrid. In fact, It works on my sample. Please see my attachment sample and let me know whether it works at your end or not.
Regards,Handy
I've found the reason why it doesn't work as expected:
When using this code it works:<
When using this code it doesn't work:
<CellStyle CssClass="clsGridRight">
.clsGridRight
{
}Do you have a solution to this problem?// Staffan E.
I'm using this code:
WebGrid1.RootTable.Columns.GetNamedItem("Amount").HeaderStyle.HorizontalAlign = ISNet.WebUI.HorizontalAlign.Right WebGrid1.RootTable.Columns.GetNamedItem(
It works ok except that the group footer isn't right aligned, it's still left aligned for some reason. How can I make all rows get right aligned?// Staffan
Hi Staffan,
It seems group footer style is following the style of the WebGridColumn Cell style or Rowstyle by default and with this way, the style should be enough to reflected into WebGrid. For now, we don't have a property to customize style in group footer. You can request this as feature request in our product feedback.
Somehow, although it is reflected in WebGrid, the group footer style is not reflected in export report. I will forward this to our developer teams about this issue. Thank you for your report.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname