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

Report Viewer for MVC

4 Answers 214 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
t
Top achievements
Rank 1
t asked on 15 Jan 2015, 01:56 PM
The Telerik provided example for the report viewer style is below.
<style>
#reportViewer1 {
position: absolute;
left: 5px;
right: 5px;
top: 120px;
bottom: 5px;
overflow: hidden;
font-family: Verdana, Arial;
}
</style>

The question is, how can the report viewer use relative pathing? No matter how the style is changed, the report will disappear if not exactly as above.

4 Answers, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 20 Jan 2015, 09:46 AM
Hi,

The HTML5 Report Viewer and its content are rendered as HTML in browsers based on the Design Considerations for HTML Rendering article. The content is contained in a DIV element with the ID of the viewer, which element can be styled with standard CSS rules as in our example. To position the DIV relatively, change the position property and provide proper width and height for the element.

Let us know if you have any further questions.

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.

 
0
t
Top achievements
Rank 1
answered on 20 Jan 2015, 12:47 PM
The standard rules for a DIV tag are not working, changing from absolute to relative and the entire report disappears. Therefore Telerik is doing something non standard and greatly appreciate your help on how to make it relative. A code snippet would be great.
0
t
Top achievements
Rank 1
answered on 20 Jan 2015, 12:49 PM
Standard CSS rules are not working. When changing from absolute to relative the report disappears, this should not happen. Therefore Telerik is doing something unique when rendering. It would be greatly appreciated if a code snippet could be provided making it relative. Read through all your documentation and code not find anything.
0
Accepted
Stef
Telerik team
answered on 20 Jan 2015, 01:33 PM
Hi,

Please4 test the following CSS in your project:
<style>
#reportViewer1 {
position: relative;
width:800px;
height:800px;
}
</style>

Note that if you use percents to set the width and height, the DIV element will be sized according to the container elements.

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
t
Top achievements
Rank 1
Answers by
Stef
Telerik team
t
Top achievements
Rank 1
Share this question
or