Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by swaroop on Dec 11, 2008 21:27
open dhtmlx forum
DhtmlxGrid : how to configure celltype "clist " using xml and for 1 cell in the record

DhtmlxGrid : how to configure celltype "clist " using xml and for 1 cell in the record?
Answer posted by Support on Dec 12, 2008 02:31
Can be configured similar to co|coro collections
http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Selectbox_collections.html#grid_art_selectbox

  <rows>
  <row id="some1">
  <cell> some </cell>
  <cell> some </cell>
  <cell xmlcontent="true">first<option>first</option><option>second</option></cell>
  <cell> some </cell>
  </row>
  </rows>

Answer posted by swaroop on Dec 12, 2008 04:53
i have added following line in my xml
<row>
<cell>exception</cell><cell>test.int</cell><cell>ALL</cell><cell xmlcontent="true"><option value='1' >first</option><option value='2'>second</option></cell><cell></cell><cell></cell>
</row>

but it is showing   cell value as --[object Element]

is there any extra setting (enable/desable) requied ?
is there any .js file need to include?

Answer posted by swaroop on Dec 12, 2008 04:55
i am attaching here my html and xml file
Attachments (2)
Answer posted by Support on Dec 12, 2008 05:25
>>but it is showing cell value as --[object Element]
Just provide some initial value as 

in case of empty cell
<cell xmlcontent="true">   <option value='1' >first</option>   // <= there is a whitespace between cell and first option tag 
in case of cell with some value
<cell xmlcontent="true">first<option value='1' >first</option>   // <= there is a whitespace between cell and first option tag 

by the way, in case of clist column type ption@value has not sense, only labels will be used