Scheduler is not in full size on initial page load

5 posts, 0 answers
  1. TROY
    TROY avatar
    10 posts
    Member since:
    Jun 2009

    Posted 16 Jun 2009 Link to this post

    I have a scheduler in a multiview inside an updatepanel. On initial page load, the scheduler is in month mode and is not full sized (it only shows 2 rows). If I reload the page, it is shown in full size, like it should be. Anytime I close the browser and reload page, it is back to the incorrect size.
  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 16 Jun 2009 Link to this post

    Hi TROY,

    Please, try calling the repaint() client method:
     <script type="text/javascript">       
            function pageload() {  
                var scheduler = $find('<%= RadScheduler1.ClientID %>');  
                scheduler.repaint();  
            }  
        </script> 



    Kind regards,
    Peter
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. TROY
    TROY avatar
    10 posts
    Member since:
    Jun 2009

    Posted 16 Jun 2009 Link to this post

    Didn't seem to work. On postback when I change the multiview to the calendar view, I have the following code:

    ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "repaint", "pageload()", true);

    And on the aspx page, in the header I have:

    function pageload() {
                var scheduler = document.getElementById("ctl00_ContentPlaceHolder1_RadScheduler1");
                scheduler.repaint();
            }  

    I tested and added an alert() in the pageload() method to make sure it was executing and it was. The calendar is still shown with 2 rows on initial page load. If I cause the 2nd postback, the calendar is full size.
  5. Doug Beard
    Doug Beard avatar
    52 posts
    Member since:
    Jan 2008

    Posted 26 Aug 2009 Link to this post

    I can not get repaint to work on scheduler, it reports the object doesn't support the method or property.
    I can resize on clientside, but only on load.  subsequent ajax calls screw up the size.
  6. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 07 Sep 2009 Link to this post

    Hi Doug,

    Which version are you using? Can you open a support ticket and send us a simple project demonstrating the problem?


    Peter
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017