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

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

7 Answers 336 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Alvaro
Top achievements
Rank 1
Alvaro asked on 28 Apr 2008, 04:08 PM
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

7 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 30 Apr 2008, 01:36 PM
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
0
Alvaro
Top achievements
Rank 1
answered on 01 May 2008, 02:12 AM
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

0
towpse
Top achievements
Rank 2
answered on 16 Dec 2009, 08:58 PM
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.
0
towpse
Top achievements
Rank 2
answered on 16 Dec 2009, 09:22 PM
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....
0
towpse
Top achievements
Rank 2
answered on 16 Dec 2009, 09:57 PM
is the resizing buggered in the 1103 version or am i just stressed out?
0
towpse
Top achievements
Rank 2
answered on 17 Dec 2009, 01:31 AM
that link doesn't go anywhere anymore.
0
T. Tsonev
Telerik team
answered on 19 Dec 2009, 01:44 PM
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.
Tags
Scheduler
Asked by
Alvaro
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Alvaro
Top achievements
Rank 1
towpse
Top achievements
Rank 2
Share this question
or