Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Alex on Sep 19, 2008 07:05
open dhtmlx forum
Cell id

Hello,

itīs possible put id on cells (XML)? I need to get some cells by Serialization GRID .

for example:

<row id="2">
<cell id='1'>TexteTest</cell>
<cell id='2'>666.5000</cell>
<cell id='3'>10.3648</cell>
<cell id='4'>380.8571</cell>
<cell id='5'>372.7857</cell>
<cell id='6'>193.2508</cell>
<cell id='7'>213.0204</cell>
<cell id='8'>1940.6293</cell>
<cell id='9'>50.3003</cell>
<cell id='10'>1108.9310</cell>
</row>
Answer posted by Support on Sep 22, 2008 02:54
You can use the following approach to serialize id parameter for the cell:

grid.cells(i,j).setAttribute("id","1");
    ...
grid.xml.cell_attrs.push("id");    // includes id in the serialization


Please, see article in the documentation: http://www.dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Loading_data_in_grid.html