public HtmlString CoreTreeView(CoreTreeView tree, string id) { //IL_0016: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Expected O, but got Unknown CoreTreeViewRenderer coreTreeViewRenderer = new CoreTreeViewRenderer(tree); tree.ID = id; return(new HtmlString(coreTreeViewRenderer.RenderHtml())); }
public CoreTreeViewRenderer(CoreTreeView model) { _model = model; }
private string GetStartupOptions() { StringBuilder stringBuilder = new StringBuilder(); CoreTreeView model = _model; TreeViewClientSideEvents clientSideEvents = model.ClientSideEvents; stringBuilder.AppendFormat("id: '{0}'", model.ID); if (!string.IsNullOrEmpty(model.Height)) { stringBuilder.AppendFormat(",height: '{0}'", model.Height); } if (!string.IsNullOrEmpty(model.Width)) { stringBuilder.AppendFormat(",width: '{0}'", model.Height); } if (!string.IsNullOrEmpty(model.DataUrl)) { stringBuilder.AppendFormat(",dataUrl: '{0}'", model.DataUrl); } if (!string.IsNullOrEmpty(model.DragAndDropUrl)) { stringBuilder.AppendFormat(",dragAndDropUrl: '{0}'", model.DragAndDropUrl); } if (!model.HoverOnMouseOver) { stringBuilder.AppendFormat(",hoverOnMouseOver:false"); } if (model.CheckBoxes) { stringBuilder.Append(",checkBoxes:true"); } if (model.MultipleSelect) { stringBuilder.Append(",multipleSelect:true"); } if (model.DragAndDrop) { stringBuilder.Append(",dragAndDrop:true"); } if (!string.IsNullOrEmpty(model.NodeTemplateID)) { stringBuilder.AppendFormat(",nodeTemplateID:'{0}'", model.NodeTemplateID); } if (!string.IsNullOrEmpty(clientSideEvents.Check)) { stringBuilder.AppendFormat(",onCheck:{0}", clientSideEvents.Check); } if (!string.IsNullOrEmpty(clientSideEvents.Collapse)) { stringBuilder.AppendFormat(",onCollapse:{0}", clientSideEvents.Collapse); } if (!string.IsNullOrEmpty(clientSideEvents.Expand)) { stringBuilder.AppendFormat(",onExpand:{0}", clientSideEvents.Expand); } if (!string.IsNullOrEmpty(clientSideEvents.MouseOut)) { stringBuilder.AppendFormat(",onMouseOut:{0}", clientSideEvents.MouseOut); } if (!string.IsNullOrEmpty(clientSideEvents.MouseOver)) { stringBuilder.AppendFormat(",onMouseOver:{0}", clientSideEvents.MouseOver); } if (!string.IsNullOrEmpty(clientSideEvents.Select)) { stringBuilder.AppendFormat(",onSelect:{0}", clientSideEvents.Select); } if (!string.IsNullOrEmpty(clientSideEvents.NodesDragged)) { stringBuilder.AppendFormat(",onNodesDragged:{0}", clientSideEvents.NodesDragged); } if (!string.IsNullOrEmpty(clientSideEvents.NodesMoved)) { stringBuilder.AppendFormat(",onNodesMoved:{0}", clientSideEvents.NodesMoved); } if (!string.IsNullOrEmpty(clientSideEvents.NodesDropped)) { stringBuilder.AppendFormat(",onNodesDropped:{0}", clientSideEvents.NodesDropped); } return(stringBuilder.ToString()); }