We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Print column width, not all columns fit on page

Thread ID:

Created:

Updated:

Platform:

Replies:

132657 Sep 14,2017 05:23 AM Sep 18,2017 01:39 AM ASP.NET MVC 3
loading
Tags: Grid
Phil
Asked On September 14, 2017 05:23 AM

Hello

My grid’s width is set to 100% and it has 3 columns. When printing the preview only shows 2 columns (more specific the pdf preview below the print dialog has 3 columns but in the print dialog there are only 2 columns). When changing the orientation of the page to landscape, all 3 pages are visible in the preview. 

How can I change the grid’s columns that all 3 of them fit on the page when using portrait orientation?

Please note, all of the changes mentioned above must only apply when printing, not any at other time.
 
Thank you for your help.


Kind Regards

Phil

Saravanan Arunachalam [Syncfusion]
Replied On September 15, 2017 04:40 AM

Hi Phil, 
Thanks for contacting Syncfusion’s support. 
We are able to reproduce your reported issue when we set the scrollSettings.width as 100% and define the columns without specify the width that we can resolve by using CommonWidth property of Grid control. Please refer to the below code example and api reference link. 
@(Html.EJ().Grid<object>("FlatGrid") 
            . . . 
            .CommonWidth(100) 
        ) 
Regards, 
Saravanan A. 


Phil
Replied On September 17, 2017 10:29 AM

Hello

That is exactly what I was looking for. Thank you very much.


Phil


Saravanan Arunachalam [Syncfusion]
Replied On September 18, 2017 01:39 AM

Hi Phil,  
Thanks for your update.            
We are happy that the provided information helped you. 
Regards, 
Saravanan A. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;