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

PDF Export - Showing Capacity and Count in the header

3 Answers 38 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Vivek
Top achievements
Rank 2
Vivek asked on 29 May 2013, 12:42 PM
Hi,

I'm using arraylist for my wrapper grid to bind the child grids in order to export pdf but data is getting exported in  pdf file with two header items "Capacity" and "Count", not sure from where these are coming.

            ArrayList arrayList = new ArrayList();
            arrayList.Insert(0, Performance.GetPerformanceData1());
            arrayList.Insert(1, Performance.GetPerformanceData2());

            RadGridWrapper.DataSource = arrayList;
            RadGridWrapper.DataBind();

I strongly believe ArrayList is creating problem with radgrid, please check and let me know the solution for that as I need to use ArrayList.

Attaching the snap shot for your reference, please have a look.


3 Answers, 1 is accepted

Sort by
0
msigman
Top achievements
Rank 2
answered on 29 May 2013, 08:44 PM
Please disable the AutoGenerateColumns property on the RadGrid and manually set up the columns using either the designer, ASPX, or via the CodeBehind.

http://www.telerik.com/help/aspnet-ajax/grid-using-columns.html
http://www.telerik.com/help/aspnet-ajax/grid-customizing-autogenerated-columns.html
0
Vivek
Top achievements
Rank 2
answered on 31 May 2013, 09:33 AM
Issue still persist, please let me know if you have any other solution.
0
Daniel
Telerik team
answered on 03 Jun 2013, 01:55 PM
Hello Vivek,

You can hide the header item as shown in the following help topic:
PDF Export

P.S. I would recommend that you use advanced data-binding instead of simple data-binding approach. Regardless of the "advanced" word in the title, there is nothing complex here. Actually it is easier and more bulletproof approach.

Regards,
Daniel
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
General Discussions
Asked by
Vivek
Top achievements
Rank 2
Answers by
msigman
Top achievements
Rank 2
Vivek
Top achievements
Rank 2
Daniel
Telerik team
Share this question
or