scheduler preliminary questions

5 posts, 0 answers
  1. Piyush Bhatt
    Piyush Bhatt avatar
    166 posts
    Member since:
    Nov 2007

    Posted 27 Feb 2008 Link to this post

    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



  2. T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 28 Feb 2008 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Piyush Bhatt
    Piyush Bhatt avatar
    166 posts
    Member since:
    Nov 2007

    Posted 29 Feb 2008 Link to this post

    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
  5. Piyush Bhatt
    Piyush Bhatt avatar
    166 posts
    Member since:
    Nov 2007

    Posted 29 Feb 2008 Link to this post

    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.
  6. Dimitar Milushev
    Admin
    Dimitar Milushev avatar
    555 posts

    Posted 03 Mar 2008 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017