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

how does rebind() exactly work?

2 Answers 174 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Andre Vovan
Top achievements
Rank 1
Andre Vovan asked on 12 Jul 2008, 01:10 AM
I bound my schedule data through code behind, and everytime I make a change I can not display it until I make a post back.

I tried using rebind() with ajaxmanager, but it doesn't seem to update the schedule until I refresh the page.  Is there any ways to fix that?

2 Answers, 1 is accepted

Sort by
0
Josh
Top achievements
Rank 1
answered on 14 Jul 2008, 08:02 PM

I don't know if you are using straight RadControls for update panels, but I had to solve a similar problem where a calendar (RadScheduler) that is being updated based on a value from a user defined control.  In the code behind I rebind the control and tell the panel to update.

        '---Rebind control  
        rsSchedule.Rebind()  
 
        '---Tell update panel to update  
        UpdatePanel1.Update() 

I'm using the AJAX Extension update panel but I'm assuming that the RadControls panel would have the same option.
0
T. Tsonev
Telerik team
answered on 15 Jul 2008, 06:03 AM
Hi Peter,

You should check that you have configured the AjaxSettings correctly. Generally, you need the following:

<telerik:AjaxSetting AjaxControlID="RadScheduler1"
    <UpdatedControls> 
        <telerik:AjaxUpdatedControl ControlID="RadScheduler1" /> 
    </UpdatedControls> 
</telerik:AjaxSetting> 
 
 

In case you are using the AjaxRequest event, you need the following setting:

<telerik:AjaxSetting AjaxControlID="RadAjaxManager1"
    <UpdatedControls> 
        <telerik:AjaxUpdatedControl ControlID="RadScheduler1" /> 
    </UpdatedControls> 
</telerik:AjaxSetting> 

I hope this helps.

Kind regards,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Scheduler
Asked by
Andre Vovan
Top achievements
Rank 1
Answers by
Josh
Top achievements
Rank 1
T. Tsonev
Telerik team
Share this question
or