/// <summary> /// Responsible for rendering the DNNTree and in an uplevel rendering of the tree, sending down the xml for the child nodes in a ClientAPI variable. /// </summary> /// <param name="writer"></param> /// <remarks> /// </remarks> /// <history> /// [jbrinkman] 5/6/2004 Created /// [Jon Henning 4/6/2005 Commented /// </history> protected override void Render(HtmlTextWriter writer) { //If Me.IsDownLevel = False Then DotNetNuke.UI.Utilities.ClientAPI.RegisterClientVariable(Me.Page, Me.ClientID & "_xml", Me.TreeNodes.ToXml, True) TreeWriter.RenderTree(writer, this); Control oCtl; foreach (Control tempLoopVar_oCtl in this.Controls) { oCtl = tempLoopVar_oCtl; oCtl.RenderControl(writer); } }
/// ----------------------------------------------------------------------------- /// <summary> /// Responsible for rendering the DNNTree and in an uplevel rendering of the tree, sending down the xml for the child nodes in a ClientAPI variable. /// </summary> /// <param name="writer"></param> /// <remarks> /// </remarks> /// <history> /// [jbrinkman] 5/6/2004 Created /// [Jon Henning 4/6/2005 Commented /// </history> /// ----------------------------------------------------------------------------- protected override void Render(HtmlTextWriter writer) { //If Me.IsDownLevel = False Then DotNetNuke.UI.Utilities.ClientAPI.RegisterClientVariable(Me.Page, Me.ClientID & "_xml", Me.TreeNodes.ToXml, True) TreeWriter.RenderTree(writer, this); foreach (Control oCtl in this.Controls) { oCtl.RenderControl(writer); } if (this.IsDownLevel == false) { ClientAPI.RegisterStartUpScript(Page, this.ClientID + "_startup", "<script>dnn.controls.initTree($('" + this.ClientID + "'));</script>"); } }