Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by josephtan2k on Nov 15, 2007 01:08
open dhtmlx forum
column id in xml

>>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>



--you replied this to me..

<rows>
<head> --- what is this for?can i put column headers here?
<column id="column1" width="150" type="ro">Some</column>

if i do this code how am i going to add values in cells?

this way?
<rows>
<row id='id'>
<head>
<column id='id'>
<cell>value</cell>
</column>
</head>
</row>

this seems not working..

thank you so much for your assistance..


Answer posted on Nov 15, 2007 01:37
The default approach is next

<?xml version="1.0" encoding="UTF-8"?>
<rows>
    <head>
        <column width="50" id="column1" type="dyn" align="right" color="white" sort="str">Sales</column>
       ... other columns configuration...
    </head>
     <row id="1">
        <cell>-1500</cell>
       ... other cell | row data ...


Please check attached sample
Attachments (1)