Changing the position of the report progress indicator

4 posts, 0 answers
  1. Telerik Admin
    Telerik Admin avatar
    1492 posts
    Member since:
    Oct 2004

    Posted 09 Sep 2009 Link to this post

    Requirements

    Reporting version

    2.0+
    .NET version

    2.0+
    Visual Studio version

    VS2005
    programming language javascript
    To convert code

    Telerik online converter  


    PROJECT DESCRIPTION
    By design the progress indicator is shown at the center of the web report viewing area. This project shows how to change the position of the progress indicator with a few lines of javascript:

     <script type="text/javascript"
                var ddl1 = document.getElementById("<%=DropDownList1.ClientID%>"); 
                var ddl2 = document.getElementById("<%=DropDownList2.ClientID%>"); 
                var viewer = <%=ReportViewer1.ClientID%>; 
                var waitDiv = document.getElementById("ReportViewer1_ReportArea_WaitControl"); 
                var tcell = waitDiv.getElementsByTagName("TD")[0]; 
                tcell.style.verticalAlign = ddl1.value; 
                tcell.style.textAlign = ddl2.value; 
        </script> 

    A sample project showing the functionality at hand is attached to this thread. For those of you who would like to change the viewer's skin and progress indicator itself, Applying custom skin to the web report viewer code library is just for you!

  2. Santa
    Santa avatar
    3 posts
    Member since:
    Oct 2012

    Posted 23 Feb 2012 Link to this post

    Thanks for the response.  This is what I was looking for.

    Santa.

  3. Andrew Chandler
    Andrew Chandler avatar
    5 posts
    Member since:
    Mar 2009

    Posted 07 Dec 2012 Link to this post

    This doesnt seem to work for Q3 2012 Reporting.  Did anything change in the object model?  I keep getting an error that the TD element and the waitdiv object are null.

  4. Steve
    Admin
    Steve avatar
    10942 posts
    Member since:
    May 2014

    Posted 12 Dec 2012 Link to this post

    Hi Andrew,

    If you download the project attached to this thread, use the Upgrade Wizard to upgrade and run the project, it would function as expected. So we suspect you're getting this error in your own project, correct? If so, did you make sure the implementation is the same i.e. the viewer is first on the page and the javascript is after it?

    Regards,
    Steve
    the Telerik team

    HAPPY WITH REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

Back to Top