|
|
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
HOWTO: Open a pop-up window for entering new eventApplies to: DayPilotCalendar 1. Set the TimeRangeSelectedHandling property to JavaScript and add your JavaScript handling code to TimeRangeSelectedJavaScript property: <daypilot:daypilotcalendar 2. Create the openPopup JavaScript function: <script type="text/javascript"> DayPilot.ds() is a helper function that produces a sortable date string from a Date object (the same as DateTime.ToString("s")). 3. You can also write the JavaScript code directly into the TimeRangeSelectedJavaScript property: <daypilot:daypilotcalendar 4. The PopupNew.aspx page should read the event details from a database. PopupNew.aspx: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="PopupNew.aspx.cs" Note: You should replace Request.QueryString calls with a code that validates (and formats) the query string first. 5. After clicking the OK you need to submit the data back to the server. It can be done by calling timeRangeSelectedCallBack function. That will submit the new event data (you will have to handle TimeRangeSelected event on the server and create the new event there) and refresh the calendar. function createEvent() {
The start and end variables can be Date objects or strings in sortable format. See alsohttp://forums.daypilot.org/Topic.aspx/57/pass_values_from_time_cell_and_get_values_back_from_a_page 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. |