aspnet-ej1-demos/Gantt/ObjectBinding.aspx

31 строка
1.5 KiB
Plaintext
Исходник Постоянная ссылка Обычный вид История

2022-12-22 11:45:10 +03:00
<%@ Page Title="Gantt-Object Data-ASP.NET-SYNCFUSION" Language="C#" MetaDescription="This example illustrates object data binding in Syncfusion Gantt chart." AutoEventWireup="true" MasterPageFile="~/Samplebrowser.Master" CodeBehind="ObjectBinding.aspx.cs" Inherits="WebSampleBrowser.Gantt.ObjectBinding" %>
<asp:Content ID="Content1" ContentPlaceHolderID="SampleHeading" runat="server">
<span class="sampleName">Gantt / Data Binding / Object Data</span>
</asp:Content>
<asp:Content ID="ControlContent" runat="server" ContentPlaceHolderID="ControlsSection">
<div style="width: 100%; height: 100%;">
<ej:Gantt ID="GanttObjectBinding" DataSourceID="ObjectData" runat="server" AllowSelection="true"
AllowSorting="true" AllowColumnResize="true"
TaskIdMapping="Id" TaskNameMapping="Name" StartDateMapping="StartDate"
EndDateMapping="EndDate" ProgressMapping="PercentDone"
ScheduleStartDate="02/18/2017" ScheduleEndDate="03/30/2017" ChildMapping="Children"
TreeColumnIndex="1" AllowGanttChartEditing="false" IsResponsive="true" Load="load">
<SizeSettings Width="100%" Height="450px" />
</ej:Gantt>
</div>
<asp:objectdatasource id="ObjectData" runat="server" typename="GanttObjectData" selectmethod="GetRecords">
</asp:objectdatasource>
</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>