Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Ramesh on Apr 02, 2008 04:25
open dhtmlx forum
Dropdown list in Grid

Hi,
I want to define dropdown list for specific cells and NOT Columns. How can i do this in the XML. i was trying the following but it is not working, Pls help

<rows>
<head>
<column width="50" type="dyn" align="right" color="white" sort="str">Sales</column>
<column width="80" type="ed" align="left" sort="str">Shipping</column>
<column width="200" type="ro" align="center" sort="str">Date of Publication</column>
<settings>
<colwidth>px</colwidth>
</settings>
</head>
    <row id="1">
        <cell>-1500</cell>
        <cell type="co">
     <option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">10</option>
<option value="5">20</option>
<option value="6">30</option>
        </cell>
        <cell>05/01/1998</cell>
    </row>
Answer posted by Support on Apr 02, 2008 07:20
You need to add xmlcontent attribute to the cell tag ( in other case its value will be processed as text )

   <cell type="co" xmlcontent="1">
     <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    <option value="4">10</option>
    <option value="5">20</option>
    <option value="6">30</option>
   </cell>

Please beware that it will work in pro version only