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

scheduler preliminary questions

4 Answers 83 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Piyush Bhatt
Top achievements
Rank 2
Piyush Bhatt asked on 27 Feb 2008, 03:24 PM
I have some preliminary questions for using Scheduler.

1. I do not want to keep the ViewState for the Scheduler. So, in Page_PreRender I bind the Scheduler with appointments ( a custom class object list) everytime. I only set the RadScheduler1.DataSource and then call RadScheduler1.Rebind(). -- is this okay?

2. When the page loads first time it displays the results correctly (calls AppointmentCreated event too). But then when I change the date, it again fetches appointment for next date - there are appts for that date too - but then AppointmentCreated does not get called and the Scheduler is displayed empty. How can I make sure that Scheduler gets refreshed on every Page_PreRender or any other event like that.

3. The other thing is - I use RadTooltip in Scheduler. When OnAjax_Update() gets called, the .net calls PreRender again and it again binds the RadScheduler. I understand that I can't avoid it - so other approach would be to update RadScheduler in different events but not in PagePreRender. If I do that, then since I am not using ViewState, and call is made for Tooltip - will there be any problem? Or do you suggest any alternative for Tooltip - like calling PageMethods through Ajax to get the content to display in tooltip control and not go through whole page event cycle.

-Piyush



4 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 28 Feb 2008, 11:35 AM
Hello Piyush,

You should generally try to supply the appointments as early as possible. A good location is the Init event. This will happen early enough, so you will not have to rebind the RadScheduler instance. I am attaching you a modified version of the "Binding to Generic List" example. What I have basically done is to move the binding in the OnInit method.

Unfortunately, we have discovered that the Q3 SP2 version of RadScheduler suffers from a problem with its navigation when the ViewState is turned off, so I am attaching you a hotfix as well. I think that your second problem is related to exactly this bug.

The RadToolTip integration should work normally, even with the extra data-binding step. Tell us if if you encounter any issues.

Greetings,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Piyush Bhatt
Top achievements
Rank 2
answered on 29 Feb 2008, 05:30 PM
Tsvetomir Tsonev,

Thank you for replying quickly.

1) I have developed a user control that allow users to change date, views (day/week/resource) and select the resources that they need to view. Hence, whenever an event occurs in this user control then only I can rebind the Scheduler. That's why I have to put the code in PreRender. If I put the binding code in OnInit() then how do I handle the user events.

2) From hotfix I copied the DLL files to my bin folder and cleared the Temporary ASP.Net folder. What should I do with all other folders in Hotfix like GlobalResources, Scripts, Skins etc? Should I be copying them anywhere?

3) After applying hotfix, when I switch from Resource View to Day view, its giving error that GroupBy property is not set. When the first time Scheduler loads, I can catch AppointmentEditing() etc client events, but after I change views (any ajax refresh event), the client events are not caught.

I have a deadline for this module in March and really need this control.

-Piyush
0
Piyush Bhatt
Top achievements
Rank 2
answered on 29 Feb 2008, 05:50 PM
The 3rd problem above is related to AjaxManager. When I use AjaxManager I have this problem, but as soon as I switch to AjaxPanel all client side scripts start working.

To tell you the truth, in many of my pages I start using AjaxManager and then I have to switch to AjaxPanel because of such problems.
0
Dimitar Milushev
Telerik team
answered on 03 Mar 2008, 11:18 AM
Hello Piyush,

1) I am not sure if I understand you correctly - events should work properly if you bind the Scheduler during the Init stage of the Page life cycle.

2) If you are not using external scripts/skins or any localization, you only need the assembly from the 'bin' folder.

3) Unfortunately we were not able to reproduce the described issue. Can you please open a support ticket and send us a simple project that reproduces the issue?

All the best,
Dimitar Milushev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Scheduler
Asked by
Piyush Bhatt
Top achievements
Rank 2
Answers by
T. Tsonev
Telerik team
Piyush Bhatt
Top achievements
Rank 2
Dimitar Milushev
Telerik team
Share this question
or