Preventing postbacks

4 posts, 0 answers
  1. Eivind Larsen
    Eivind Larsen avatar
    2 posts
    Member since:
    Oct 2012

    Posted 10 Oct Link to this post

    HI there,

    I am trying to do client-side manipulation of the scheduler.  Can anyone tell me why it insists on doing Postbacks, even if I an doing everything through JavaScript?  I have no postback events set up, but even if I just execute scheduler.insertAppointment() I catch the postbacks

    Thanks in advance

    Rob

  2. Loïc
    Loïc avatar
    12 posts
    Member since:
    Oct 2016

    Posted 10 Oct in reply to Eivind Larsen Link to this post

    Hi Eivind!

    I think it's due to the Rebind() event that fires after insertAppointment(), even if everything is done in JavaScript.

    You can apply a RadAjaxManager to prevent those postbacks.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Eivind Larsen
    Eivind Larsen avatar
    2 posts
    Member since:
    Oct 2012

    Posted 10 Oct in reply to Loïc Link to this post

    Hi Loic,

    Can you explain a bit more please?  I'm new to Telerik components, so I may need a little more help

    Regards

     

  5. Loïc
    Loïc avatar
    12 posts
    Member since:
    Oct 2016

    Posted 11 Oct in reply to Eivind Larsen Link to this post

    Hi Eivind!

    Here is some explanations about RadAjaxManager : http://docs.telerik.com/devtools/aspnet-ajax/controls/ajaxmanager/overview

    A RadAjaxManager catches all postBacks events, and updates only components that are declarated in AjaxUpdatedControl. Thus, you will have no postBacks on your Page, only on your RadScheduler.

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

     

    You can also add a RadAjaxLoadingPanel to display the updating of your RadScheduler.

    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Bootstrap"></telerik:RadAjaxLoadingPanel>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadScheduler1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1"/>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

     

    Let me know if you have other questions.

Back to Top