Example #1
0
    protected void pivotCallback_OnCallback(object sender, EventArgs e)
    {
        Debug.Print("pivotCallback_OnCallback " + System.DateTime.Now.ToString());

        RefreshSelectedSubj();
        PivotSelSubj.DataSource = (DataView)Session["ss_selsubj"];
        PivotSelSubj.DataBind();
        PivotSelSubj.ReloadData();

        PivotUnselSubj.DataSource = (DataView)Session["ss_unselsubj"];
        PivotUnselSubj.DataBind();
        PivotUnselSubj.ReloadData();
    }
Example #2
0
    protected void gridSubjCallback_OnCallback(object sender, EventArgs e)
    {
        Debug.Print("  $$  pivotSubjCallback_OnCallback " + System.DateTime.Now.ToString());

        DataTable dt = uwac.trk.dataops.GetSelectedSubjects(Convert.ToInt32(cboSubjSet.Value.ToString()), Master.Master_studyID);

        Session["proj_subj"] = dt;

        PivotSelSubj.DataSource = (DataTable)Session["proj_subj"];
        PivotSelSubj.DataBind();
        PivotSelSubj.ReloadData();

        int n_proj_subj = dt.Rows.Count;

        PivotSelSubj.Visible = (n_proj_subj > 0) ? true : false;

        selsubj_n.Text = String.Format("({0} selected)", n_proj_subj.ToString());
    }