Changing the position of the report progress indicator

Thread is closed for posting
4 posts, 0 answers
  1. 63F75A2C-1F16-4AED-AFE8-B1BBD57646AD
    63F75A2C-1F16-4AED-AFE8-B1BBD57646AD avatar
    1572 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. 254E2FDB-8923-484E-8C49-4B7D557BCCF0
    254E2FDB-8923-484E-8C49-4B7D557BCCF0 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. 5FB3EAB7-B1FA-42A9-8D79-12A0631FB68E
    5FB3EAB7-B1FA-42A9-8D79-12A0631FB68E avatar
    7 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. 3BD6F94B-4C03-46D3-8568-9982F1F201BF
    3BD6F94B-4C03-46D3-8568-9982F1F201BF avatar
    10940 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

This Code Library is part of the product documentation and subject to the respective product license agreement.