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

ReportViewer Parameter Visibility Problem

4 Answers 221 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tom Harkness
Top achievements
Rank 1
Tom Harkness asked on 19 Jan 2011, 07:32 PM
I have created my my reports for a WPF application we are in the process of creating. Reports run fine and all parameters are visible and usable by the client. They requested a similiar window frame from our app that would encapsulate the the report window. No problem. I added the same custom features(Borders and whatnot) around the window with no problem. Reports ran fine and everything. The problem then comes that the color scheme of the ReportViewer in WPF is gray and it was requested to be black. Though there is a public property to define the background in XAML it does nothing. I went into Blend again and adjusted the template for the ReportViewer (default was No Brush) and was able to change the border background to the desired color gradient scheme.

The REAL problem is that when I change the default template for the ReportViewer to a new DynamicStyle using my new styles all parameters become hidden. All reports with no paramaters run as desired, but any report that uses a parameter(s) hide the Date Calender, or the drop down menu from the user. What needs to be done to change the ReportViewer look and feel and STILL maintain the parameters for usage?

Any info you could provide would be greatly appreciated.

Tom

4 Answers, 1 is accepted

Sort by
0
Terry Webster
Top achievements
Rank 1
answered on 25 Jan 2011, 10:52 PM
I am having a similar problem.  I changed the default template to remove the navigation buttons in the toolbar.  Now the ParametersAreaPane does not show my parameters as before.  If I remove the style, they show up again.  But I really need to be able to remove the navigation(history) buttons from the toolbar.

0
Tom Harkness
Top achievements
Rank 1
answered on 26 Jan 2011, 02:01 AM
I put a ticket in (385877). As usual, Telerik support got me fixed up. The problem I had in particular is with the ReportParameterEditorTemplateSelector and the way Blend had handled it. They fixed up my template and I am back in business.

Hopefully that helps a litte.

As a side note, thanks again Support Team!

Tom
0
Terry Webster
Top achievements
Rank 1
answered on 26 Jan 2011, 08:42 PM
Well, I am stuck.

Here is the reason I am trying to disable the History Nav buttons.  I have a report that has report parameters being set prior to the report being displayed.  Once they have entered their parameters, they click a button to display the report.  The report then displays correctly and has 3 additional paramaters on the report itself that are displayed.  They can change these parameters and click preview and the report refreshes the data with theese parameters.  At this point, the history buttons become active.  However, if I click back, the report no longer renders and errors out.  I am programmatically building the report data (chart and table).  It does not hit my needdatasource again which is where all the code is for building the chart and table. 

I wouldn't have to touch the template if I could figure out how to get the preview button to re-render the report correctly.

Any ideas?
0
Charlie
Top achievements
Rank 2
answered on 16 Sep 2011, 06:22 PM
Tom:  what did Telerik do to your custom Style to fix it?

Terry:  were you able to solve your problem?

Thank You
Tags
General Discussions
Asked by
Tom Harkness
Top achievements
Rank 1
Answers by
Terry Webster
Top achievements
Rank 1
Tom Harkness
Top achievements
Rank 1
Charlie
Top achievements
Rank 2
Share this question
or