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

DataTemplate in GridViewColumn is not printing

4 Answers 79 Views
GridView
This is a migrated thread and some comments may be shown as answers.
$enthil
Top achievements
Rank 1
$enthil asked on 27 Apr 2010, 06:23 AM
In RadGridView, if the AutoGenerateColumns is true the PrintToHtml() function print all the columns perfectly.

Suppose, if I want to use the below template for a column then it is not printed when using the PrintToHtml() function. But the GridViewDataColumn is alone printed.

            <telerikGridView:GridViewColumn Header="Journey">
                        <telerikGridView:GridViewColumn.CellTemplate>
                            <DataTemplate>
                                <Grid>
                                    <StackPanel Orientation="Horizontal">
                                    <TextBlock Text="{Binding StartLocation}"/>
                                    <TextBlock Text=" - "/>
                                    <TextBlock Text="{Binding EndLocation}"/>


                                    </StackPanel>
                                </Grid>
                            </DataTemplate>
                        </telerikGridView:GridViewColumn.CellTemplate>
            </telerikGridView:GridViewColumn>

Please, help me to solve this issue..

Thanks in Advance...

4 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 27 Apr 2010, 07:18 AM
Hi $enthil,

You can catch Exporting event and set e.Value in case of templated columns. Other possible approach is to use Silverlight 4 printing. You can check our updated demo for more info.

Regards,
Vlad
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
$enthil
Top achievements
Rank 1
answered on 27 Apr 2010, 11:57 AM
Can u please provide a sample with the Exporting event without using silverlight 4?
0
Vlad
Telerik team
answered on 27 Apr 2010, 12:00 PM
Hi $enthil,

You can find our Silverlight 4 online demo here.

All the best,
Vlad
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
$enthil
Top achievements
Rank 1
answered on 29 Apr 2010, 05:47 AM
I have installed the new version of silverlight and telerik toolkit too.. but i could not find the assembly System.Windows.Printing.dll for the PrintDocument class.. Can you please help me out?
Tags
GridView
Asked by
$enthil
Top achievements
Rank 1
Answers by
Vlad
Telerik team
$enthil
Top achievements
Rank 1
Share this question
or