80 lines
5.4 KiB
Plaintext
80 lines
5.4 KiB
Plaintext
<%--
|
|
{************************************************************************************}
|
|
{ }
|
|
{ DO NOT MODIFY THIS FILE! }
|
|
{ }
|
|
{ It will be overwritten without prompting when a new version becomes }
|
|
{ available. All your changes will be lost. }
|
|
{ }
|
|
{ This file contains the default template and is required for the form }
|
|
{ rendering. Improper modifications may result in incorrect behavior of }
|
|
{ the appointment form. }
|
|
{ }
|
|
{ In order to create and use your own custom template, perform the following }
|
|
{ steps: }
|
|
{ 1. Save a copy of this file with a different name in another location. }
|
|
{ 2. Specify the file location as the }
|
|
{ 'OptionsForms.AppointmentInplaceEditorFormTemplateUrl' }
|
|
{ property of the ASPxScheduler control. }
|
|
{ 3. If you need custom fields to be displayed and processed, you should }
|
|
{ accomplish steps 4-9; otherwise, go to step 10. }
|
|
{ 4. Create a class, derived from the }
|
|
{ AppointmentInplaceEditorTemplateContainer, containing custom properties. }
|
|
{ This class definition can be located within a class file in the App_Code }
|
|
{ folder. }
|
|
{ 5. Replace AppointmentInplaceEditorTemplateContainer references in the }
|
|
{ template page with the name of the class you've created in step 4. }
|
|
{ 6. Handle the AppointmentInplaceEditorFormShowing event to create an }
|
|
{ instance of the template container class, defined in step 4, and specify }
|
|
{ it as the destination container instead of the default one. }
|
|
{ 7. Define a class, which inherits from the }
|
|
{ DevExpress.Web.ASPxScheduler.Internal.AppointmentFormController. }
|
|
{ This class provides data exchange between the form and the appointment. }
|
|
{ You should override ApplyCustomFieldsValues() method of the base class. }
|
|
{ 8. Define a class, which inherits from the }
|
|
{ DevExpress.Web.ASPxScheduler.Internal.AppointmentFormSaveCallbackCommand. }
|
|
{ This class creates an instance of the AppointmentFormController inheritor }
|
|
{ (defined in step 7) via the CreateAppointmentFormController method and }
|
|
{ overrides the AssignControllerValues method of the base class to collect }
|
|
{ user data from the form's editors. }
|
|
{ 9. Handle the BeforeExecuteCallbackCommand event. The event handler code }
|
|
{ should create an instance of the class defined in step 8, and specify it }
|
|
{ as the destination command instead of the default one. }
|
|
{ 10. Modify the overall appearance of the page and its layout. }
|
|
{ }
|
|
{************************************************************************************}--%>
|
|
|
|
<%@ Control Language="vb" AutoEventWireup="true" Inherits="InplaceEditor" Codebehind="InplaceEditor.ascx.vb" %>
|
|
<%@ Register Assembly="DevExpress.Web.ASPxScheduler.v17.2, Version=17.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxScheduler" TagPrefix="dxwschs" %>
|
|
<%@ Register Assembly="DevExpress.Web.ASPxScheduler.v17.2, Version=17.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxScheduler.Controls"
|
|
TagPrefix="cc1" %>
|
|
<%@ Register Assembly="DevExpress.Web.v17.2, Version=17.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web"
|
|
TagPrefix="dxe" %>
|
|
<table cellpadding="2"; cellspacing="0" style="width:100%; height:100%">
|
|
<tr>
|
|
<td style="width:100%" >
|
|
<dxe:ASPxMemo ClientInstanceName="_dx" ID="memSubject" runat="server" Width="100%" Rows="5" Text='<%#(CType(Container, AppointmentInplaceEditorTemplateContainer)).Appointment.Subject%>'>
|
|
</dxe:ASPxMemo>
|
|
</td>
|
|
<td valign="top" >
|
|
|
|
<div>
|
|
<cc1:NoBorderButton runat="server" ClientInstanceName="_dx" ID="btnSave" Width="19px" Height="19px" ToolTip="Save"
|
|
Image-IsResourcePng="True">
|
|
</cc1:NoBorderButton>
|
|
</div>
|
|
|
|
<div style="padding-top:1px;">
|
|
<cc1:NoBorderButton runat="server" ClientInstanceName="_dx" ID="btnCancel" Width="19px" Height="19px" ToolTip="Cancel"
|
|
CausesValidation="False" Image-IsResourcePng="True">
|
|
</cc1:NoBorderButton>
|
|
</div>
|
|
|
|
<div style="padding-top:6px;">
|
|
<cc1:NoBorderButton runat="server" ClientInstanceName="_dx" ID="btnEditForm" Width="19px" Height="19px" ToolTip="Open Edit Form..."
|
|
CausesValidation="False" Image-IsResourcePng="True">
|
|
</cc1:NoBorderButton>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table> |