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

refreshCallBack()

Declaration

DayPilotCalendar.Calendar.refreshCallBack(start, days)

Parameters

Name Type Description
start null, Date object, or integer Accepted values:
  • null (the current StartDate is passed to the server-side event handler)
  • Date object (that date is passed to the server-side event handler)
  • integer (current StartDate changed by the specified number of days is passed to the server-side event handler)
days null or integer 

Accepted values:

  • null (the current Days value is passed to the server-side event handler)
  • integer (the specified number is passed to the server-side event handler)

Remarks

Executes the server-side Refresh event using a CallBack.

The server-side event handler will get the StartDate and Days properties

Examples

  • dpc1.refreshCallBack(7); // moves the view one week forward
  • dpc1.refreshCallBack(-7); // moves the view one week backward
  • dpc1.refreshCallBack(null, 1); // switches to Day view (without changing the StartDate)
  • dpc1.refreshCallBack(new Date(), 7); // switched StartDate to today and Days to 7

Note: "dpc1" is the value of ClientObjectName property.

Working example can be found at http://www.daypilot.org/demo/Calendar/DateSwitching.aspx (the source code is part of the download package).

 

 

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.