Hi
When i view report by binding it in page-load event its tollbar style is messed up. but if i add a button and bind report on its click event it is ok. What i am missing plz help me.
See attached pic to see how report looks like
5 Answers, 1 is accepted
0
Accepted
Hi Saima Gul,
Usually this problem happens when the runat='server' attribute in the head element of the page is missing. Add it and refresh the page. In case this does not help, please review the following KB article that elaborates on some more possible reasons: The styles of the web report viewer's toolbar are messed up.
Hope it helps.
Kind regards,
Peter
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.
Usually this problem happens when the runat='server' attribute in the head element of the page is missing. Add it and refresh the page. In case this does not help, please review the following KB article that elaborates on some more possible reasons: The styles of the web report viewer's toolbar are messed up.
<
head
runat="server">
...
</
head
>
Hope it helps.
Kind regards,
Peter
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
Joe
Top achievements
Rank 1
answered on 30 May 2013, 06:58 PM
How can I fix this in an MVC application? I can add an extra "head" tag to my markup in the documented approach of using the webforms viewer in an aspx view, but at this point it feels like I'm working around work-arounds.
0
Hi Joe,
Since the report viewer cannot be placed directly in a razor (cshtml or vbhtml) view you will have to actually use an aspx page. This means that you have full control over the whole markup, including the header.
Regards,
IvanY
Telerik
Since the report viewer cannot be placed directly in a razor (cshtml or vbhtml) view you will have to actually use an aspx page. This means that you have full control over the whole markup, including the header.
Regards,
IvanY
Telerik
Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.
0
Joe
Top achievements
Rank 1
answered on 04 Jun 2013, 12:23 PM
Hi Ivan,
The tutorials and blog posts written about this show using an aspx page as a partial view when using razor (specifically http://blogs.telerik.com/telerikreportingteam/posts/13-03-26/telerik-reporting-in-mvc-sure-it-takes-8-quick-steps- ). Adding a ""<head runat=server>" tag in the middle of the rendered markup (as part of the aspx page) means that my end html will be invalid.
The tutorials and blog posts written about this show using an aspx page as a partial view when using razor (specifically http://blogs.telerik.com/telerikreportingteam/posts/13-03-26/telerik-reporting-in-mvc-sure-it-takes-8-quick-steps- ). Adding a ""<head runat=server>" tag in the middle of the rendered markup (as part of the aspx page) means that my end html will be invalid.
0
Hi Joe,
Since you are rendering the aspx as partial view the head tag (and any other tags outside of the body, including the body) will not be rendered. You can check the output by running one of the examples and checking the html with the developer tools of the browser.
Regards,
IvanY
Telerik
Since you are rendering the aspx as partial view the head tag (and any other tags outside of the body, including the body) will not be rendered. You can check the output by running one of the examples and checking the html with the developer tools of the browser.
Regards,
IvanY
Telerik
Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.