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
2745
igGrid column with igCombo Editor displaying HTML
posted

I have a collection of objects being bound to an igGrid.  For many columns, the properties being bound are simple types e.g. string, int, bit, etc.  For one of the columns, I am passing back HTML and the igGrid is rendering it perfectly exactly how I want it.

However, this HTML column is also editable.  The underlying editor is set to a Combo Box because it is multiple selection.  Whenever the user clicks on the field it initially shows the value as encoded HTML in a text editor.  But the drop down controls show the extra options in the perfect rendered HTML.  Screenshots attached.

Question:  Is there any way to hide the text editor control rendering the encoded HTML or force the editor to continue rendering the HTML?

I'm certain the display will look good if and only if the combo box arrow is displayed and nothing else.  But it has to be floated to the right exactly where it is today.

Thanks,

Parents
No Data
Reply
  • 23953
    Offline posted

    Hi Daniel,

    igGridUpdating combo editor is (as you already know) an igCombo, which means that instead of passing back HTML and binding igCombo to it you can use igCombo templating to achieve the same effect.

    You also need to manually save the selected items back to the data source, because igGridUpdating supports only single selection. You can do that by calling igCombo.values method.

    You can get the editor for a column with the igGridUpdating.editorForKey method API.

     

    Hope this helps,
    Martin Pavlov

    Infragistics, Inc.

Children