I did like this.
protected void Page_Load(object sender, EventArgs e)
{
#region Data loading initialization
if (Session["Day"] == null)
{
Session["Day"] = DataGenerator.GetData();
}
table = (DataTable)Session["Day"];
DayPilotNavigator1.DataSource = Session["Day"];
DayPilotScheduler1.DataSource = Session["Day"];
#endregion
if (!IsPostBack)
{
DayPilotScheduler1.StartDate = DateTime.Today;
DataBind();
}
}
and for navigator
protected void DayPilotScheduler1_Command(object sender, DayPilot.Web.Ui.Events.CommandEventArgs e)
{
switch (e.Command)
{
case "navigate":
DayPilotScheduler1.StartDate = (DateTime) e.Data["start"];
table = GetSomeOtherData();
table.AcceptChanges();
DayPilotScheduler1.DataBind();
DayPilotScheduler1.Update(CallBackUpdateType.Full);}
break;
}
}
I was assuming when iupdate the datatable it will reflect on schedular.. but it is not happening.
any idea?
I have not put schedular control inside the update pannel.
Thanks.