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

Report Viewer Toolbar displaying weirdly

3 Answers 217 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
gs1711
Top achievements
Rank 1
gs1711 asked on 16 Nov 2010, 07:04 AM
Telerik report viewer on my page is displaying weirdly exactly like shown in this article:-

 http://www.telerik.com/support/kb/reporting/report-viewers/the-styles-of-the-web-report-viewer-s-toolbar-are-messed-up.aspx

When I embed report viewer in my page that uses no master page, the report viewer displays alright but when I use master page..it's displaying double buttons on toolbar like the article above. How do I fix this ?

The solution in the article above is that I need to add preCondition attribute but mine is " IIS5.1 "  and when I add that attribute..it says "preCondition attribute not declared"

Also, how do I implement "Preview button" on the report viewer toolbar like this demo :-

http://demos.telerik.com/reporting/sales-dashboard/demo.aspx

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 16 Nov 2010, 07:09 PM
Hello gs1711,

The KB article you've referenced lists several known reasons for this problem to occur and solutions. Point #1 explicitly states that it is applicable only if you use IIS 7, otherwise it is irrelevant and you should not add anything. Check the other points as most likely one of them is the culprit.
As for your second inquiry, the Preview button is part of the automatic report parameters UI. Check the following help article for more info on report params: Report Parameters.

Greetings,
Steve
the Telerik team
See What's New in Telerik Reporting in Q3 2010 on Wednesday, November 17, 11am Eastern Time: Register here>>
0
gs1711
Top achievements
Rank 1
answered on 17 Nov 2010, 05:19 AM
It seems to me that its something to do with master page's css coz report viewer displays alright when no master page is used
...the 4th point in the solution says :-

"If you have global styles or themes applied on the page - disable them temporary to verify if they are the culprit. If this proves to be the case, make sure that styles/themes do not affect html elements directly, but are applied through the CssClass property."

Now how do I use this "CssClass property" with my report Viewer ?? Where do I find the css classes to be applied ..I don't even see no skins folder anywhere...What Skin is the report Viewer using by default and where is it stored?
0
Steve
Telerik team
answered on 18 Nov 2010, 05:58 PM
Hi gs1711,

You should use the CssClass property over your own controls that you're styling - the viewer should be intact. I've attached a sample project using both master page and user controls and the viewer works correct in both cases. Review those carefully and pinpoint what differs in your case.

Kind regards,
Steve
the Telerik team
See What's New in Telerik Reporting in Q3 2010 on Wednesday, November 17, 11am Eastern Time: Register here>>
Tags
General Discussions
Asked by
gs1711
Top achievements
Rank 1
Answers by
Steve
Telerik team
gs1711
Top achievements
Rank 1
Share this question
or