Refreshing the scheduler control client-side... how?

8 posts, 0 answers
  1. Alvaro
    Alvaro avatar
    4 posts
    Member since:
    Mar 2008

    Posted 28 Apr 2008 Link to this post

    Hi,

    I'm using my own popups to create/edit appointments.  When I close my popup, I'd like to tell the scheduler control to refresh itself (via Ajax, if possible).  How do I do that?

    Thanks,
    Alvaro
  2. T. Tsonev
    Admin
    T. Tsonev avatar
    2772 posts

    Posted 30 Apr 2008 Link to this post

    Hello Alvaro,

    Our integration example with RadWindow demonstrates one possible solution to this problem. It uses the RadAjaxManager and its AjaxRequest event to initiate the refresh from the client-side:

    function refreshScheduler() 
        var ajaxManager = $find("RadAjaxManager1"); 
        ajaxManager.ajaxRequest('RebindScheduler'); 

    And on the server-side:

    protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e) 
        if (e.Argument == "RebindScheduler"
        { 
            RadScheduler1.Rebind(); 
        } 

    Check the example source for more details.

    All the best,
    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. Alvaro
    Alvaro avatar
    4 posts
    Member since:
    Mar 2008

    Posted 30 Apr 2008 Link to this post

    Thanks for your reply and your suggestion, Tsvetomir.  It works.

    Unfortunately, it doesn't work as smoothly as I was hoping.  If you click on the link you gave me (for the RadWindow example), then scroll inside the scheduler down to the last appointment ("Pick up kids from school"), then double click on it, change the End time to 4:00 pm, and Update, the scheduler gets refreshed back to the top.  In other words, it doesn't remember its scroll position upon refresh, so you don't get to see a change made to the lower appointment until you scroll back down.  It's somewhat annoying, and it defeats the purpose of using Ajax.

    I hope you can add my gripe as a suggestion for future releases. 

    Thanks again,
    Alvaro

  5. towpse
    towpse avatar
    224 posts
    Member since:
    Mar 2008

    Posted 16 Dec 2009 Link to this post

    Is there a better way to force the scheduler to rebind or refresh it's appointments on the client-side with the scheduler using web service method to bind data?

    When my page loads the scheudler automatically tried to get appointments but I don't necessarily have all the info I need to get them yet. I need some user input first so I cancel the schedules initial get.
    Once the user selects some data then the client shows the main view; no post back so the schedule doesn't rebind but I want to force it to rebind.


    Once I view the schedule, if I click a new view the scheduler goes and gets the appointments and displays them.

    Also I may have found a bug.
    I've just updated to the 3.1208 version and for some reason the month view isn't displaying my appointments right off the bat until I go to a new month and then come back.
    I see the response returns the correct appointments but they are not displayed when they should. Like I said I need to force the scheduler to re-request. Seems wrong. I may revert the version to see if it was a result of the update.
  6. towpse
    towpse avatar
    224 posts
    Member since:
    Mar 2008

    Posted 16 Dec 2009 Link to this post

    yeah i reverted to the 1103 version and the schedules show up as I'd expect.
    previously with the 1208 version, I would click on month view after the scheduler loaded on the default week view and i would not see anything until i went to November first then came back to December where i expect to see stuff.

    After reverted, my schedule loads in week view. I click month and i see the appointments i expect to see....
  7. towpse
    towpse avatar
    224 posts
    Member since:
    Mar 2008

    Posted 16 Dec 2009 Link to this post

    is the resizing buggered in the 1103 version or am i just stressed out?
  8. towpse
    towpse avatar
    224 posts
    Member since:
    Mar 2008

    Posted 16 Dec 2009 Link to this post

    that link doesn't go anywhere anymore.
  9. T. Tsonev
    Admin
    T. Tsonev avatar
    2772 posts

    Posted 19 Dec 2009 Link to this post

    Hi,

    The view changing issue is addressed in this thread. Do you have any other issues after upgrading to Q3 SP1 and applying the patch from the thread?

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