7 Answers, 1 is accepted
0
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:
And on the server-side:
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
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
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.
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....
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
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.
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.