Trigger appointments to be recreated with postback

5 posts, 1 answers
  1. Lukrs
    Lukrs avatar
    39 posts
    Member since:
    Sep 2012

    Posted 09 Apr 2009 Link to this post

    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






  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 10 Apr 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Lukrs
    Lukrs avatar
    39 posts
    Member since:
    Sep 2012

    Posted 16 Apr 2009 Link to this post

    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
  5. Answer
    Yana
    Admin
    Yana avatar
    4554 posts

    Posted 16 Apr 2009 Link to this post

    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.
  6. Lukrs
    Lukrs avatar
    39 posts
    Member since:
    Sep 2012

    Posted 16 Apr 2009 Link to this post

    Hi,

    That did the trick :)

    Tkanks Yana.

    LP, Luka
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017