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
0
Hi TROY,
Please, try calling the repaint() client method:
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.
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);
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.
I can resize on clientside, but only on load. subsequent ajax calls screw up the size.
0
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.
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.