All of my events are listed in the scheduler as one hour events and I am about about to shrink the event in the calendar below an hour, but can expand the event to what ever duration I want.
I realize I am missing some simple configuration setting, but am not able to locate the setting.
Thanks
SergeM
August 18, 2014, 3:18pm
#2
Hi,
could you please send us a sort of demo to inspect the issue?
<%@ Page Language=“C#” AutoEventWireup=“true” CodeBehind=“TestCal.aspx.cs” Inherits=“SBA.SBAScheduler.Calendar.TestCal” %>
<%= this.Scheduler.Render()%>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace SBA.SBAScheduler.Calendar
{
public partial class TestCal : System.Web.UI.Page
{
public DHTMLX.Scheduler.DHXScheduler Scheduler { get; set; }
protected void Page_Load(object sender, EventArgs e)
{
var sbaDataContext = new SBA.SBAScheduler.LINQ.SBA_SchedulerDataContext();
this.Scheduler = new DHTMLX.Scheduler.DHXScheduler();
Scheduler.InitialDate = new DateTime(2014, 04, 08);
Scheduler.DataAction = this.ResolveUrl("TestData.ashx");
Scheduler.LoadData = true;
Scheduler.EnableDataprocessor = true;
Scheduler.Data.Loader.PreventCache();
}
}
}
This is the TestData.ashx.cs file…
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace SBA.SBAScheduler.Calendar
{
///
/// Summary description for TestData
///
public class TestData : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
DHTMLX.Scheduler.Data.SchedulerAjaxData data;
var sbaDataContext = new SBA.SBAScheduler.LINQ.SBA_SchedulerDataContext();
data = new DHTMLX.Scheduler.Data.SchedulerAjaxData(_GetEvents());
context.Response.ContentType = "text/json";
context.Response.Write(data.ToString());
}
protected List<object> _GetEvents()
{
var items = new List<object>(){
new { id = "1", text = "first event", start_date = "04/08/2014 12:00", end_date = "04/08/2014 12:30", StaffId = "2" },
new { id = "2", text = "second event", start_date = "04/08/2014 15:30", end_date = "04/08/2014 15:30", StaffId = "3" },
new { id = "3", text = "third event", start_date = "04/08/2014 18:00", end_date = "04/08/2014 18:30", StaffId = "4" }
};
return items;
}
public bool IsReusable
{
get
{
return false;
}
}
}
}