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

Auto generated columns header width & Export to pdf problem

5 Answers 156 Views
Grid
This is a migrated thread and some comments may be shown as answers.
nader
Top achievements
Rank 1
nader asked on 10 Dec 2010, 11:41 PM
First :
i have two problems when i export a radgrid when i export to pdf as follows :-
1) The header texts are outside the header cells
2) The grid content is half hidden and half visible to me (as it needs a scroll bar to show the rest of the table horizontally)
-The attached file shows the issue.
hint: the grid have autogenerated columns

Second:
This grid has autogenerated columns and i want to control the width of each column to fit the data within it.

5 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 16 Dec 2010, 12:06 PM
Hello Nader,

Straight onto your questions:

1) RadGrid will wrap the text automatically provided that you have an empty spaces inside.

2) Please try one or more of the following options:
  • switch the orientation to landscape
  • reduce the font size
  • use narrower fonts
  • decrease the page margins
  • increase the page size

Kind regards,
Daniel
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
nader
Top achievements
Rank 1
answered on 16 Dec 2010, 03:20 PM
thanx for help in the first two points. the problem is solved .
but i still have a problem in controlling the width of the autogenerated columns.....
0
Daniel
Telerik team
answered on 21 Dec 2010, 04:45 PM
Hello Nader,

Unfortunately there is no easy and reliable way to calculate the column width according to its contents.
Please excuse us for any inconvenience caused.

Best regards,
Daniel
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Mahendra
Top achievements
Rank 1
answered on 18 Feb 2011, 06:32 AM
Hi,

When i am exporting the report of auto-generated column, i am getting this error...

An error has occurred while processing Table 'table2':
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index


how can i resolve this issue.

Thanks,
Mahendra
0
Daniel
Telerik team
answered on 23 Feb 2011, 10:43 PM
Hello Mahendra,

I'm afraid the provided information is not enough to determine the root cause of this exception. Please either post some code or some kind of instructions as to how to reproduce the problem on my end.

Best regards,
Daniel
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
Grid
Asked by
nader
Top achievements
Rank 1
Answers by
Daniel
Telerik team
nader
Top achievements
Rank 1
Mahendra
Top achievements
Rank 1
Share this question
or