This question is locked. New answers and comments are not allowed.
Hi,
We are using the print feature of Silverlight RadGridview. Our gridview had a number of columns, and our requirement is to Print all the columns displaying on the Grid, but the function PrintToHtml() is printing only 10 columns.
Is there any way we can customize the function for increasing the width of the Page or print all the columns displaying on the grid(such as 20 or 25)?
Thanks
Rajiv Mohan
6 Answers, 1 is accepted
0
Hello RAJIV,
What version of RadControls for Silverlight are you using?
All the best,
Yavor Georgiev
the Telerik team
What version of RadControls for Silverlight are you using?
All the best,
Yavor Georgiev
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
RAJIV
Top achievements
Rank 1
answered on 21 Sep 2010, 10:32 AM
Thanks for reply.
The File version we are using is: 2010.2.917.1040
The File version we are using is: 2010.2.917.1040
0
Hi RAJIV,
PrintToHtml() is a legacy method. In this version you should use the code provided in our Printing demo, which allows you complete control over the printed GridView.
All the best,
Yavor Georgiev
the Telerik team
PrintToHtml() is a legacy method. In this version you should use the code provided in our Printing demo, which allows you complete control over the printed GridView.
All the best,
Yavor Georgiev
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
MiddleTommy
Top achievements
Rank 1
answered on 24 Feb 2011, 11:35 PM
In the printing Demo how would you transfer the Groups IsExpanded property to the printed grid?
0
Hello MiddleTommy,
The solution is not very straightforward, but it's doable.
Yavor Georgiev
the Telerik team
The solution is not very straightforward, but it's doable.
- In your source RadGridView, subscribe to the GroupRowIsExpandedChanged event. You need to add the Group of the expanded GroupRow in a list (and also remove the Group from the list when a GroupRow is collapsed).
- Attach to the DataLoaded event of your printed RadGridView. In the handler you will need to iterate over all the IGroup objects you have gathered in the first step and find their counterparts in the printed RadGridView and expand them. Basically:
foreach(var groupinexpandedGroups){var printGroup = printedGridView.Items.Groups.OfType<IGroup>().Where(g => g.Key == group.Key).FirstOrDefault();if(printGroup !=null){printedGridView.ExpandGroup(printGroup);}}
Yavor Georgiev
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!
0
MiddleTommy
Top achievements
Rank 1
answered on 25 Feb 2011, 04:18 PM
Thanks that is awesome.
I would like to suggest for a future version that we store the IsExpanded information in IGroup or somewhere automatically.
Or that we have a method that can check if a group is expanded like so:
RadGridView.IsGroupExpanded(IGroup group)
//actually I like this better than storing it in IGroup.
I would like to suggest for a future version that we store the IsExpanded information in IGroup or somewhere automatically.
Or that we have a method that can check if a group is expanded like so:
RadGridView.IsGroupExpanded(IGroup group)
//actually I like this better than storing it in IGroup.