public IHtmlNode TreeViewTag() { IHtmlNode parent = base.ComponentTag("div"); if (!base.Component.UsesTemplates()) { string[] classes = new string[] { "k-widget", "k-treeview", "k-reset" }; parent.PrependClass(classes); if (base.Component.Items.Count > 0) { base.ListTag().AppendTo(parent); } } return(parent); }
public IHtmlNode TreeViewTag() { IHtmlNode div = ComponentTag("div"); if (!Component.UsesTemplates()) { div.PrependClass(UIPrimitives.Widget, "k-treeview", UIPrimitives.ResetStyle); if (Component.Items.Count > 0) { ListTag().AppendTo(div); } } return(div); }