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

Scheduler is not in full size on initial page load

4 Answers 95 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Troy
Top achievements
Rank 1
Troy asked on 16 Jun 2009, 12:48 PM
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.

4 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 16 Jun 2009, 02:04 PM
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.
0
Troy
Top achievements
Rank 1
answered on 16 Jun 2009, 02:20 PM
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.
0
Doug Beard
Top achievements
Rank 2
answered on 26 Aug 2009, 08:23 PM
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.
0
Peter
Telerik team
answered on 07 Sep 2009, 01:57 PM
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.
Tags
Scheduler
Asked by
Troy
Top achievements
Rank 1
Answers by
Peter
Telerik team
Troy
Top achievements
Rank 1
Doug Beard
Top achievements
Rank 2
Share this question
or