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

Report Viewer and Custom Server control

5 Answers 144 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 2
David asked on 11 Feb 2011, 04:39 PM
Hi,


I have added the telerik report viwer to a custom web conrol so we can add a custom filter panel above the report viewer. everything seems to be working ok (reports run and report viewer renders) but when running a report it no longer displats the Generating report animation. any idea how i can fix this?

Thanks

5 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 15 Feb 2011, 05:21 PM
Hello David ,

Check the styles you have on the master page hosting the control. You can use FireBug or Developer Tools to identify where the loading image is (most likely out of the visible area or hidden).

All the best,
Steve
the Telerik team
Get started with Telerik Reporting with numerous videos and detailed documentation.
0
David
Top achievements
Rank 2
answered on 16 Feb 2011, 05:29 PM
Hi,

I have had a look but couldnt see anything that said it was out of the viewing area. We load a report when the user clicks a button the page does a post back, the report is then assigned to the telerik report viewer. while the report is loading/processing the page shows the load process bar, but the screen is not updated with the grenerating report.

the generating report does work when changing from page to page.

is this the correct way to load the report to the viewer?

thanks. 
0
Steve
Telerik team
answered on 18 Feb 2011, 05:58 PM
Hello David ,

Your second post indicates the problem is different i.e. the loading panel shows but the report does not render after it finishes rendering. Assigning a report to the viewer in a postback event is fine and should work as you expect it to, in fact that is what happens when you click on a treeview node in our online examples. Can you share what browser and version you're using, and does the problem occur with other browsers as well? Did you use FireBug or Developer Tools to see why the report does not show on the page? What width/height did you apply to the viewer? if it is in percentages make sure the whole DOM tree has width height applied.

All the best,
Steve
the Telerik team
0
David
Top achievements
Rank 2
answered on 21 Feb 2011, 11:35 AM
I'm currently using IE8 and firefox 3.6.13 and we have the same issue

I have checked with Devloper tools and initialy the report viewer is shown on the page. when i click out runreport button it does a post back and re-renders ther page but none of the control is shown on the page until the report has finnished processing.

I think this is todo with our custom control

there is a video of me running a report on http://www.allocatesoftware.org.uk/RunningReport.swf

we have a custom web control implamentation below.

protected  override void CreateChildControls()

{
    ...
    ReportViewer.ID ="RptViewer";
    ReportViewer.Width = this.Width;
    ReportViewer.Height = new Unit(1300, UnitType.Pixel); 
    ReportViewer.ShowZoomSelect = true ;

    ReportViewer.ZoomMode = Telerik.ReportViewer.WebForms.ZoomMode.Percent;
    ...
}

public void RunReport()
{
   ...
   Rpt = ReportClass.GetReport(ClassName.ToString());
   ReportViewer.Report = Rpt;   
   ReportViewer.RefreshReport();
   ...
}

 

protected override void Render(HtmlTextWriter writer)
{
    ...
    ReportViewer.RenderControl(writer);
    ...

 

 

 

0
Steve
Telerik team
answered on 24 Feb 2011, 09:56 AM
Hello David,

Thank you for the video and code you have provided. The code looks correct and we do not believe it is related. In fact if it was the viewer at fault, you would not get a report rendered at all, since it is the viewer that issues the command to render the report through its http handler. So the viewer is on the page, but the fact it is not shown until the report is processed is due to something else. We suggest profiling your project and see what is happening while the report is rendering.
If you are unable to identify the problem, we would appreciate if you open a support ticket and provide us with a runnable sample project that exhibits the problem.

Greetings,
Steve
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
General Discussions
Asked by
David
Top achievements
Rank 2
Answers by
Steve
Telerik team
David
Top achievements
Rank 2
Share this question
or