aspnet-ej1-demos/Gantt/DragAndDrop.aspx

30 строки
1.4 KiB
Plaintext

<%@ Page Title="Gantt-Row Drag and Drop-ASP.NET-SYNCFUSION" Language="C#" MetaDescription="This example illustrates drag-and-drop rows in the Syncfusion Gantt chart control." AutoEventWireup="true" MasterPageFile="~/Samplebrowser.Master" CodeBehind="DragAndDrop.aspx.cs" Inherits="WebSampleBrowser.Gantt.DragAndDrop" %>
<asp:Content ID="Content1" ContentPlaceHolderID="SampleHeading" runat="server">
<span class="sampleName">Gantt / Drag And Drop</span>
</asp:Content>
<asp:Content ID="ControlContent" runat="server" ContentPlaceHolderID="ControlsSection">
<div style="width: 100%; height: 100%; overflow: visible;">
<ej:Gantt ID="GanttControlDefault" AllowDragAndDrop="true" runat="server" AllowSelection="true" AllowColumnResize="true"
TaskIdMapping="Id" TaskNameMapping="Name" ScheduleStartDate="02/23/2017" ScheduleEndDate="03/15/2017"
StartDateMapping="StartDate" EndDateMapping="EndDate" ProgressMapping="PercentDone"
ChildMapping="Children" AllowGanttChartEditing="false"
TreeColumnIndex="1" IsResponsive="true" Load="load">
<DragTooltip ShowTooltip="true" />
<SizeSettings Width="100%" Height="450px" />
</ej:Gantt>
</div>
</asp:Content>
<asp:Content ID="Content3" runat="server" ContentPlaceHolderID="ScriptSection">
<script type="text/javascript">
function load(args) {
this.getColumns()[0].width = 60;
}
</script>
</asp:Content>