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

Silverlight ReportViewer Template in Blend

1 Answer 44 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 04 Aug 2014, 02:53 PM
I'm trying to modify the control template for the ReportViewer using Blend. When I choose Edit Template > Edit a Copy, it creates a blank ControlTemplate instead of a copy of the ReportViewer's default template:

<UserControl.Resources>
  <ControlTemplate x:Key="ReportViewerControlTemplate1" TargetType="rv:ReportViewer"/>
</UserControl.Resources>
 
<Grid x:Name="LayoutRoot" Background="White">
  <rv:ReportViewer Template="{StaticResource ReportViewerControlTemplate1}" />
</Grid>

I'm using Telerik RadControls for SIlverlight Q3 2013, Telerik Reporting Q3 2013, Expression Blend 4. Does the ReportViewer have some other dependency that's preventing this from working?

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 07 Aug 2014, 12:25 PM
Hi Robert,

Telerik Reporting Q3 2013 requires Silverlight 5+ Tools/SDK, which applies to Blend if you intend to extract the viewer's template.
Then using Visual Studio 2013 or Blend for Silverlight 5 you can select the control in the XAML designer and select Edit Template - Edita a Copy, which will extract the same style as the attached.

As of Telerik Reporting Q1 2014 the WPF/Silverlight ReportViewer controls use only implicit styles, which will ease you to customize the template. More details about the styling option as of Q1 2014 are available in the Setting a theme of the WPF/Silverlight Report Viewer (Q1 2014 and later) blog post.

I hope this information helps you.

Regards,
Stef
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
General Discussions
Asked by
Robert
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or