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

[Solved] Problems with PDF Export

5 Answers 207 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Zeeshan Abbasi
Top achievements
Rank 1
Zeeshan Abbasi asked on 11 Mar 2010, 04:34 PM
Hi,
I have four RadGrids within one Parent RadGrid, Parent grid has no data. All four nested grids has no columns by default. I am adding columns from code behind. Number of columns are variable i-e they can be 2 to 20. All nested four grids gets equal number of columns. When i don't set width of the nested grids in pixels or percentage data export for pdf with parent grid works fine. When i set width of nested grids in and it's columns pdf export fails with following exception:
System.InvalidCastException: Unable to cast object of type 'Telerik.Web.Apoc.Layout.BlockArea' to type 'Telerik.Web.Apoc.Layout.AreaContainer'. at Telerik.Web.Apoc.Fo.Flow.BlockContainer.Layout(Area area) at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area) at Telerik.Web.Apoc.Fo.Flow.TableCell.Layout(Area area) at Telerik.Web.Apoc.Fo.Flow.TableRow.Layout(Area area) at Telerik.Web.Apoc.Fo.Flow.AbstractTableBody.Layout(Area area) at Telerik.Web.Apoc.Fo.Flow.Table.Layout(Area area) at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area) at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area, Region region) at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area) at Telerik.Web.Apoc.Fo.Pagination.PageSequence.Format(AreaTree areaTree) at Telerik.Web.Apoc.StreamRenderer.Render(PageSequence pageSequence) at Telerik.Web.Apoc.Fo.FOTreeBuilder.EndElement() at Telerik.Web.Apoc.Fo.FOTreeBuilder.Parse(XmlReader reader)
 
Can you please give some help regarding this?

Thanks,
Zee





5 Answers, 1 is accepted

Sort by
0
Zeeshan Abbasi
Top achievements
Rank 1
answered on 15 Mar 2010, 04:19 PM
hi telerik team,

can anyone suggest me how to export nested grids with dynamically assigned width columns?
export with default width is working fine but it is not working with custom width of columns for nested grids?

Regards,
0
Zeeshan Abbasi
Top achievements
Rank 1
answered on 15 Mar 2010, 04:58 PM
Hi telerik team,
Any suggestions to control the width of columns of nested grids to export it in pdf?
I need to export four different grids in one pdf document, for this i used nested grids,
can anyone help regarding this?

Regards,
Zee
0
Accepted
Daniel
Telerik team
answered on 16 Mar 2010, 09:31 PM
Hello Zeeshan,

This is expected behavior - currently our PDF engine doesn't support DIV/SPAN elements (RadGrid wrapper is rendered as a DIV element) with hardcoded width/height. I recommend you set the desired width on the MasterTableView instead.

I hope this helps.

Regards,
Daniel
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Zeeshan Abbasi
Top achievements
Rank 1
answered on 16 Mar 2010, 09:42 PM
Hi,
Thanks for you response,
 is there a possibility to accomplish this in next release?
0
Daniel
Telerik team
answered on 17 Mar 2010, 10:25 AM
Hello Zeeshan,

We will do our best to implement this functionality in the future versions of RadControls for ASP.NET AJAX. Unfortunately I'm unable to commit to an exact timeframe at this point.

Regards,
Daniel
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Zeeshan Abbasi
Top achievements
Rank 1
Answers by
Zeeshan Abbasi
Top achievements
Rank 1
Daniel
Telerik team
Share this question
or