DayPilot - Open-Source Outlook-Like Calendar/Scheduling Control for ASP.NET
Try the online demo: AJAX-style event creating, moving, resizing, and deleting • Context menu • Day view • Work week view • Week view • Month view • Horizontal/vertical resources view • PostBack/AJAX/JavaScript event handling • Binding to XmlDataSource, SqlDataSource, DataTable, ArrayList • Custom event formatting • UpdatePanel compatibility

Fast refresh (refreshCallBack)

refreshCallBack() method

This client-side method allows to:

  • send a request for change of StartDate property
  • send a request for event refresh

The alternative is placing DayPilotScheduler inside UpdatePanel:

  • refreshCallBack() allows change of selected properties only
  • refreshCallBack() is much faster than UpdatePanel

How it works

It works the same way as in the other controls (DayPilotCalendar, DayPilotScheduler, and DayPilotMonth):

  • On the client side, you invoke dpsd.refreshCallBack(date, days) method.
  • The parameters accepted for date are: a JavaScript Date object or an integer (integer value represents the number of days to be moved, backwards or forwards)
  • The days parameter will be passed as the new Days value to the server-side event handler.
  • Both values are available in the server-side Refresh event handler.

Example of the client-side call:

<a href="javascript:dpsd.refreshCallBack(1);">+1 day</a>

This sends StartDate + 1 day as e.StartDate to the Refresh event handler:

    protected void DynamicScheduler1_Refresh(object sender, DayPilot.Web.Ui.Events.RefreshEventArgs e)
    {
        DynamicScheduler1.StartDate = e.StartDate;
        DynamicScheduler1.DataBind();
        DynamicScheduler1.Update();

    }

DayPilot Pro is an advanced DayPilot edition. You can check a thumbnail overview of the most interesting features. There is also an online demo with all the features working (including the AJAX features). If you want to test the design-time support and API you can download a fully functional trial version. And if you like it, you can buy a full version with source code and 12 months of upgrades and support (with a 30-days money back guarantee).

DayPilot Lite is a do-it-yourself open-source edition of DayPilot. Although it misses some DayPilot Pro features, there are thousands of developers using it to build calendar, personal scheduling, and resource booking applications.

Questions or suggestions? Try DayPilot forums or contact us directly.