Пример #1
0
    /// <summary>
    /// Make sure a copy of the data is in the Session so users can try changes on their own copy.
    /// </summary>
    private void initData()
    {
        if (Session["MonthView"] == null)
        {
            Session["MonthView"] = DataGeneratorMonth.GetData();
        }

        table = (DataTable)Session["MonthView"];
    }
Пример #2
0
    /// <summary>
    /// Make sure a copy of the data is in the Session so users can try changes on their own copy.
    /// </summary>
    private void initData()
    {
        if (Session["MonthCustomRendering"] == null)
        {
            Session["MonthCustomRendering"] = DataGeneratorMonth.GetData();
        }

        table = (DataTable)Session["MonthCustomRendering"];
    }
Пример #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        #region Data loading initialization
        if (Session["MonthView"] == null)
        {
            Session["MonthView"] = DataGeneratorMonth.GetData();
        }
        table = (DataTable)Session["MonthView"];
        DayPilotMonth1.DataSource = Session["MonthView"];
        #endregion

        if (!IsPostBack)
        {
            DataBind();
        }
    }