Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Stan Levin on Nov 12, 2007 12:01
open dhtmlx forum
dhtmlxGrid integration with dhtmlxCombo through XML

Hi,

We are trying to integrate combo control dthmlxCombo with the grid. As our combo population is the same for every row,
we are wondering if it is possible to use <head> element to define all combo values in something lile this:

<?xml version="1.0" encoding="UTF-8"?>
<rows>
<head>
<column width="80" type="combo" align="left" sort="str">Shipping
        <complete>
            <option value="1">one</option>
            <option value="2">two</option>
            <option value="3">three</option>
        </complete>    
    </column>
</head>
...
</rows>

Unfortunately, it did not work. Is this technique supported at all for combo? We know it works for co/coro types.

Thanks a lot,
Stan.
Answer posted on Nov 13, 2007 07:15
Correct syntax is next

<column width="80" type="combo" align="left" sort="str">Shipping
           <option value="1">one</option>
            <option value="2">two</option>
            <option value="3">three</option>
</column>

You can check next sample
http://www.dhtmlx.com/docs/products/dhtmlxGrid/samples/interaction_other_components/pro_combo.html