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

Preventing postbacks

3 Answers 144 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Eivind Larsen
Top achievements
Rank 1
Eivind Larsen asked on 10 Oct 2016, 12:45 PM

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

3 Answers, 1 is accepted

Sort by
0
Loïc
Top achievements
Rank 1
answered on 10 Oct 2016, 01:37 PM

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.

0
Eivind Larsen
Top achievements
Rank 1
answered on 10 Oct 2016, 02:27 PM

Hi Loic,

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

Regards

 

0
Loïc
Top achievements
Rank 1
answered on 11 Oct 2016, 08:08 AM

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.

Tags
Scheduler
Asked by
Eivind Larsen
Top achievements
Rank 1
Answers by
Loïc
Top achievements
Rank 1
Eivind Larsen
Top achievements
Rank 1
Share this question
or