List<Node> nods = DAL.GetData();

 

    Builder b = new Builder(nods);

     b.NodeSetting.OnNodeAdded += NodeSetting_OnNodeAdded;

      StringBuilder s = b.Export(b.Normalize());

        Literal_menu.Text = s.ToString() ;


 

 void NodeSetting_OnNodeAdded(NodeAddedEventArgs e)
        {
            if (e.Current.IsRoot)
            {
                e.Current.Text = "<span style='color:green'>" + e.Current.Text + "</span>";
            }
        }




Download Sample Project (@ ASP.NET Web Form)

Last edited Sep 8, 2013 at 4:30 PM by mbseifollahi, version 15

Comments

No comments yet.