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
45
IgGird Cell Encoding when update Viewmodel (KnockoutJS) with HTML
posted

Hello,
I'm face a problem when updating my viewModel's property with value for example "<p>test</p>".

When cell in the igGrid is updated, the value <p>test</p> is encoded and display it like text (&lt;p&gt;test&lt;/p&gt;).

How can i fix this?

  • 24671
    posted

    Hi Anton,

    you cannot update a cell with HTML contents, if you'd like your cells to be templated, the recommended way of setting this up is to define a column template, then whenever you edit the data, the template structure will be kept. Does your scenario require end users to enter HTML content that shouldn't be encoded? 

    Thanks

    Angel