Hi Dan,
DaypilotMonth is repeating the last week for november month when i add BeforeCellRender event.
Please look at below code.
Design HTML Code
---------------------------
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<DayPilot:DayPilotMonth ID="DayPilotMonth1" runat="server"
OnBeforeCellRender="DayPilotMonth1_BeforeCellRender1"
ShowWeekend="false"
DataEndField="StartDate" DataStartField="StartDate"
DataTextField="TicketNo" datavaluefield="TicketNo"
EventStartTime="false" EventEndTime="false"
/>
</div>
</form>
</body>
</html>
Codebehind File
----------------------
public partial class Test : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
DayPilotMonth1.StartDate = DateTime.Parse("11/12/2009");
DataSet ds = new DataSet();
DataTable dt = new DataTable("Tickets");
dt.Columns.Add(new DataColumn("TicketNo", typeof(int)));
dt.Columns.Add(new DataColumn("StartDate", typeof(DateTime)));
dt.Rows.Add(100, "11/04/2009");
dt.Rows.Add(101, "11/11/2009");
dt.Rows.Add(102, "11/15/2009");
dt.Rows.Add(103, "11/24/2009");
dt.Rows.Add(104, "11/26/2009");
DayPilotMonth1.DataSource = dt;
DayPilotMonth1.DataBind();
}
protected void DayPilotMonth1_BeforeCellRender1(object sender, DayPilot.Web.Ui.Events.Month.BeforeCellRenderEventArgs e)
{
}
}
At present i am using daypilot 5.7.1912 version.
Please advice me how to fix it.
Thanks,
Kiran Chandu