This tutorial shows how to enable custom event sorting inside ASP.NET scheduler time cells.
Sample configuration:
.aspx
<DayPilot:DayPilotScheduler ID="Scheduler" runat="server" ... EventMoveToPosition="true" />
.aspx.cs
private void SetDataSourceAndBind(DateTime start, DateTime end) { Scheduler.DataSource = GetData(start, end); Scheduler.DataStartField = "eventstart"; Scheduler.DataEndField = "eventend"; Scheduler.DataIdField = "id"; Scheduler.DataTextField = "name"; Scheduler.DataResourceField = "resource_id"; Scheduler.EventSortExpression = "ordinal"; Scheduler.DataBind(); }
The source code of the tutorial is available for download.