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

Trigger appointments to be recreated with postback

4 Answers 74 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Lukrs
Top achievements
Rank 2
Lukrs asked on 09 Apr 2009, 10:54 AM
Hi,

I,m trying to refresh my radScheduler or trigger appointments to be recreated and rebound from here:


            <telerik:RadWindow ID="NaslovnikiSkupine" Width="800" Height="600" runat="server" InitialBehavior="None" IconUrl="images/detailSMS.ico" KeepInScreenBounds="true"
                Left="" style="display:none;" Top="" OnClientClose="postbackOnClientClose">



the postbackOnClientClose function looks like this :

  function postbackOnClientClose() {
            __doPostBack("<%= RadScheduler1.ClientID %>", "");
            
        }


This doesn't refresh the appointments (trigger the RadScheduler1_AppointmentDataBound)....it just triggers the RadScheduler1_AppointmentCreated event.

How can I achieve that?

Thanks,
LP, Luka






4 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 10 Apr 2009, 02:26 PM
Hello Lukrs,

You can use RadAjaxManager in order to refresh the appointments, in postbackOnClientClose you can add the following code:

var ajaxManager = <%= RadAjaxManager1.ClientID %>;  
ajaxManager.ajaxRequest();  
 

and in code behind in OnAjaxRequest event handler:

protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)  
{  
     RadScheduler1.Rebind();  
}  
 

Kind regards,
Yana
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Lukrs
Top achievements
Rank 2
answered on 16 Apr 2009, 11:18 AM
Hi,

I'm sorry, bot the code you provided doesn't work. The javascript is called and there are no errors reported by the javascript console.  The ajaxrequest however isn't triggered.

Any ideas?


lp, Lukrs
0
Accepted
Yana
Telerik team
answered on 16 Apr 2009, 02:18 PM
Hello Lukrs,

Could you please try to apply these settings to RadAjaxManager and let us know how it goes:


<telerik:RadAjaxManager ID="RadAjaxManager1" OnAjaxRequest="RadAjaxManager1_AjaxRequest" runat="server">  
 <AjaxSettings> 
 <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">  
 <UpdatedControls> 
 <telerik:AjaxUpdatedControl ControlID="RadScheduler1" /> 
 </UpdatedControls> 
 </telerik:AjaxSetting> 
 </AjaxSettings> 
</telerik:RadAjaxManager> 

Sincerely yours,
Yana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Lukrs
Top achievements
Rank 2
answered on 16 Apr 2009, 10:54 PM
Hi,

That did the trick :)

Tkanks Yana.

LP, Luka
Tags
Scheduler
Asked by
Lukrs
Top achievements
Rank 2
Answers by
Yana
Telerik team
Lukrs
Top achievements
Rank 2
Share this question
or