Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by DavidO on Apr 28, 2008 12:20
open dhtmlx forum
combobox load different options for one row using XML

Hello,

Using XML is it possible to load a different set of options for one row and cell in dhtmlxTreeGrid?

This is fine for most rows:

<rows>
<head>
<column width='240' type='tree' align='left' sort='str'>Tree</column>
<column width='210' type='co' align='center' sort='str'>Tag
<option value="contains">contains</option>
<option value="eq">equal to</option>
</column>
...

But for some rows I'd like the combobox to only display:

<option value="like">LIKE</option>
<option value="notlike">NOT LIKE</option>

I can use [!CDATA options]] to append to the list but I'd like it to replace the list.

Thank you for your help.
Answer posted on Apr 29, 2008 01:30
You can define separate options list for co|coro column types for each row.
It will look similar to next

<row id="some">
    <cell> tree cell </cell>
    <cell xmlcontent="true">value<option value="like">LIKE</option><option value="notlike">NOT LIKE</option></cell>

Please beware that it will work for pro version only.