Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by haritha on Sep 25, 2008 00:32
open dhtmlx forum
Clist in html table


Hi,

I am using html table to initialize grid. so may i know how to use clist in html and what script files i need to include.

thanks
haritha
Answer posted by dhtmlx support on Sep 26, 2008 06:47
You can use registerCList(column_index,list) method in this case.

For example, if clist is the first column, the table can be as follows

<table class="dhtmlxGrid" name="mygrid" onbeforeinit="mygrid.registerCList(0,'value 1,value 2,...')" ....>
    <tr>
            <td type="clist" >...</td>
            <td ...>...</td>
        ...
    </tr>
..
</table>

dhtmlxgrid_excell_clist.js should be included