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

Multimonth Navigation Very Slow

7 Answers 71 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Levi
Top achievements
Rank 1
Levi asked on 19 Nov 2010, 05:45 PM
Is there any reason why when using a multi-month calendar it has to use AutoPostBack and cannot work client side like a single calendar does? The navigation is so slow because of the postbacks and I don't see why it has to use postbacks anyway. I have the calendar wrapped in a conditional update panel, but still it takes much too long for it to navigate. Is there anything I can do to improve the performance of this? It would be nice if you guys would change this to work client side at some point as well which would help a bit.

7 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 22 Nov 2010, 12:40 PM
Hi Levi,

Examine the following forum thread and let me know if it helps to improve the performance:
http://www.telerik.com/community/forums/aspnet-ajax/calendar/month-navigation-causes-postback.aspx

Kind regards,
Pavlina
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Levi
Top achievements
Rank 1
answered on 22 Nov 2010, 03:34 PM
I tried the solution suggested but it doesn't work for me. It just causes the calendar to not navigate at all. Are you sure it works with MultiViewColumns="2"? That's the whole problem I'm having, it won't work without autopostback="true". I don't understand why it can't use client side navigation just like a single calendar does. This makes it very slow.

<telerik:RadCalendar ID="RadCalendar1" runat="server" MultiViewColumns="2" AutoPostBack="true">
<ClientEvents OnDateSelected="OnDateSelected" />
</telerik:RadCalendar>


<script type="text/javascript">
        function OnDateSelected(sender, eventArgs) {
            sender.set_autoPostBack(true);
        }  
    </script>

>>> the code >>>
 protected void Page_Load(object sender, EventArgs e)
        {
          RadCalendar1.AutoPostBack = false; 
        }
0
Pavlina
Telerik team
answered on 23 Nov 2010, 04:46 PM
Hi Levi,

RadCalendar needs to postback when navigating only when you have multiple month views, as in the following demo:

http://demos.telerik.com/aspnet-ajax/calendar/examples/functionality/multimonthview/defaultcs.aspx

Regards,
Pavlina
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Levi
Top achievements
Rank 1
answered on 23 Nov 2010, 04:54 PM
I know it does. That's the whole reason I posted the issue. It is VERY SLOW. Why you guys can't figure out how to do this client side instead of requiring post backs is beyond me. There are other controls that provide multimonth views that work completely client side. 
0
Pavlina
Telerik team
answered on 24 Nov 2010, 09:22 AM
Hello Levi,

Attached to this message is a simple test project which demonstrates how you can achieve the desire functionality. Please give it a try and let me know if it works for you.

Greetings,
Pavlina
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Levi
Top achievements
Rank 1
answered on 24 Nov 2010, 03:18 PM
I am confused. This is still using post backs to navigate the calendar? That is what I am trying to prevent. Why does the multi-month calendar need to use postbacks to navigate but not a single month calendar? The navigation would much faster if postbacks were not needed. Could not a multi month calendar using the same client side navigation logic as a single month calendar?
0
Pavlina
Telerik team
answered on 29 Nov 2010, 01:50 PM
Hi Levi,

Please excuse me for misleading you. MultiView calendar operates in AutoPostBack (server-mode) only so every action you perform on the control (date selection, navigation to different month, etc.) will cause postback. Unfortunately it is not possible to change the multiview rows with client-side code either.

Kind regards,
Pavlina
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Calendar
Asked by
Levi
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Levi
Top achievements
Rank 1
Share this question
or