Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
55
Set value on Html Editor
posted

Hi All,

Please help me how to set text on HTML Editor. When my form loads, the html editor should be expty and when in Edit mode only the text should be set as html. I am developing a MVC application. here is my code:

@(Html.Infragistics().
        HtmlEditorFor(x => x.InternalNotes).
        Width("99%").
        HtmlAttributes(new Dictionary<string, object> { { "class", "htmleditor" } }).
        ID("htmlEditorNotes").
        Render()

x.InternalNotes ="Test Please ignore the content" (its a string property)

but when in Edit mode, it loads as follows

"Testing%20BIO..Please%20ignore%20the%20content...%3Cbr%3E"..

How do I set a string property as html??

Thanks & Regards

Parents
  • 49378
    posted

    Hello Reena,

    I have tested this scenario with IgniteUI 2013.2 but am so far unable to replicate the behavior in question. Attached is my test project for your reference. Please feel free to modify it in order to illustrate the behavior and allow me to examine the matter further.

    Do not hesitate to contact me with any updates or questions.

     

    igHtmlEditorBindtoModel (2).zip
Reply Children
No Data