Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by josephtan2k on Nov 14, 2007 00:20
open dhtmlx forum
column id in xml

hi,
id just like to ask how to put column id's through the xml(grid.xml), in your codes ive read, for rows it's
<rows>
    <row id="1">
        <cell>-1500</cell>
        <cell>A Time to Kill</cell>
        <cell>John Grisham</cell>
        <cell>12.99</cell>
        <cell>1</cell>
        <cell>24</cell>
        <cell>0</cell>
        <cell>05/01/1998</cell>
    </row>
...

what tag to use and where to place them?
i already know about the function js to do that..i was just thinking how to do it in xml..

i wanted to implement ids for cells..since there isnt and only columns and rows have ids.

thank you for your help.
Answer posted on Nov 14, 2007 01:36
>>what tag to use and where to place them?

It can be done only if you define all grid configuration in XML

<rows>
    <head>
         <column id="column1" width="150" type="ro">Some</column>
 


>>i wanted to implement ids for cells
For which purpose you need to have IDs for each cell, existing API allows to access cell by row ID and column index as
    grid.cells(i,j)
If you juså need unique HTML Ids for cells you can enable next mode
    grid.enableCellIds(true);