Column type for embeding html control in cell


#1

Hi,

I am trying to add HTML select control in grid but it doesn’t show as select box in grid. I am passing in XML as

<cell>
      <![CDATA[<select><option value='1'>L1</option><option value='2' selected>L2</option></select>]]>
</cell>

And tried setting setColType as combo, ro but it never loads the select control. Is there a particular column type that I need to set or any other setting that I am missing?

Note that I am using
Version: 5.0.2
Edition: Professional
I do the column type etc setting in the script instead of XML .

Regards,
Nilesh


#2

Please, try to use the “ro” column type in your case.
But the better solution is tio create your own custom column type.
Here you can find a tutorial with some examples:
https://docs.dhtmlx.com/grid__columns_types.html#customcolumntypes