This is a migrated thread and some comments may be shown as answers.

grid printing in right align

6 Answers 72 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Salah
Top achievements
Rank 1
Salah asked on 07 Apr 2012, 06:15 AM
i work with grid view printing
SummaryRowGroupHeaders right align  doesn't work
when i print a grid with righttoleft=true;
SummaryRowGroupHeaders is in left align

6 Answers, 1 is accepted

Sort by
0
Ivan Todorov
Telerik team
answered on 11 Apr 2012, 04:31 PM
Hello Salah,

Thank you for contacting us.

Currently, RightToLeft mode is not supported in the printing functionality. You can modify the alignment manually by using the PrintCellFormatting event:
void radGridView1_PrintCellFormatting(object sender, PrintCellFormattingEventArgs e)
{
    if (e.Row is GridViewSummaryRowInfo)
    {
        e.PrintCell.TextAlignment = ContentAlignment.MiddleRight;
    }
}

However, I have noticed some issues while testing your scenario. It appears that when the grid is in RightToLeft mode, the layout of the pages is not correct. I have logged this as an issue in our Public Issue Tracking System and we will address it in a future release. Here you can find the PITS item. For the time being, I cannot provide you with a suitable workaround due to the internal implementation of the printing functionality.

Your Telerik points have been updated for bringing this to our attention.

Feel free to write back if you have any additional questions.

Kind regards,
Ivan Todorov
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
0
hasan
Top achievements
Rank 1
answered on 10 Apr 2014, 11:32 AM
hello
I do this work but doesn't work 
I'm using the RadControls for WinForms Q3'2013
0
Stefan
Telerik team
answered on 14 Apr 2014, 11:44 AM
Hello Hasan,

From your post, I am unable to understand what is precisely you case, what is the issue you experience and how can I reproduce it, in order to investigate it and help you resolve it. Please provide more information about you case and the issue you experience and we will gladly help you with it.

Regards,
Stefan
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
hasan
Top achievements
Rank 1
answered on 14 Apr 2014, 12:41 PM
hello
i work with grid view printing 
when i print a grid view with (righttoleft=true;) and code(gridview.PrintPreview();)
Table of Print this page is in left align
thanks in advance.
0
Stefan
Telerik team
answered on 16 Apr 2014, 01:32 PM
Hi Hasan,

I have tested right to left layout when printing RadGridView and it seems to be working properly with both the version you specified and our latest version. See attached images.

If you want to change the alignment of some cells, you can use the approach my colleague Ivan suggested.

If you continue to experiencing issues with the RightToLeft alignment, please provide more details and a sample where I can reproduce them and I will gladly investigate the case.

Looking forward to your reply.

Regards,
Stefan
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
hasan
Top achievements
Rank 1
answered on 18 Apr 2014, 10:49 AM
Hello stefan,
i am tested this work.
Regards,
Thanks for the your help
Thanks for the telerik team
Tags
GridView
Asked by
Salah
Top achievements
Rank 1
Answers by
Ivan Todorov
Telerik team
hasan
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or