Does this control offer Read-only/display mode?

Apr 6, 2009 at 7:30 PM
Hello,

Thanks for reviewing my question.  I would like to know if this control offers read-only/display mode?  In addition, where can I find documentation on how to use the control?

Peter
Jul 7, 2010 at 7:34 AM
Edited Jul 7, 2010 at 10:55 AM

Just override Render method:


        protected override void Render(HtmlTextWriter writer)
        {
            if (!ReadOnly)
            {
                RenderBeginTag(writer);
                RenderContents(writer);
                RenderEndTag(writer);
            }
            else
            {
                writer.Write(String.Format("<div width='{0}' height='{1}'>{2}</div>", Width, Height, Text));
            }
        }

'Text' property contains inner html

Paul