Exemplo n.º 1
0
 protected void orgChartStatus_NodeDataBound(object sender, Telerik.Web.UI.OrgChartNodeDataBoundEventArguments e)
 {
     foreach (Telerik.Web.UI.OrgChartGroupItem item in e.Node.GroupItems)
     {
         DataRow dr = ((DataRowView)item.DataItem).Row;
         item.CssClass = arrClass[Convert.ToInt32(dr["Status"])];
     }
 }
Exemplo n.º 2
0
        protected void orgChartStatus_NodeDataBound1(object sender, Telerik.Web.UI.OrgChartNodeDataBoundEventArguments e)
        {
            DataRow dr     = ((DataRowView)e.Node.DataItem).Row;
            string  kdUnit = (string)dr["KD_UNIT_MAIN"].ToString();

            if (kdUnit.EndsWith("XX"))
            {
                e.Node.CssClass = "AnggotaNode";
            }
        }
Exemplo n.º 3
0
        protected void orgChartStatus_NodeDataBound(object sender, Telerik.Web.UI.OrgChartNodeDataBoundEventArguments e)
        {
            DataRow dr = ((DataRowView)e.Node.DataItem).Row;

            string kdUnit   = (string)dr["KD_UNIT_MAIN"].ToString();
            string kdEselon = (string)dr["KD_ESELON"].ToString();

            if (kdUnit.EndsWith("XX"))
            {
                e.Node.CssClass = "AnggotaNode";
            }
            //if (kdEselon != "40") e.Node.

            //e.Node.RenderedFields[0].Text += dr["KD_UNIT_MAIN"].ToString();
            //KD_UNIT_MAIN

            //e.Node.CssClass = "ABCE";
            //e.Node.DataItem
            //e.Node.RenderedFields[0].
        }