Telerik.Web.Mvc.UI.ComboBox.WriteHtml C# (CSharp) Method

WriteHtml() protected method

protected WriteHtml ( System writer ) : void
writer System
return void
        protected override void WriteHtml(System.Web.UI.HtmlTextWriter writer)
        {
            if (Items.Any())
            {
                this.PrepareItemsAndDefineSelectedIndex();
            }

            IDropDownHtmlBuilder builder = new ComboBoxHtmlBuilder(this);

            IHtmlNode rootTag = builder.Build();

            builder.InnerContentTag().AppendTo(rootTag);

            builder.HiddenInputTag().AppendTo(rootTag);

            //output window HTML
            rootTag.WriteTo(writer);

            base.WriteHtml(writer);
        }