Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by tep on Jun 29, 2008 18:05
open dhtmlx forum
add custom property on dhtml obeject/row and access it in the xml

sir,

this is a follow up question..
if i have created a custom property for the dhtmlxgrid object how can i access it in an xml..

for example..
i can access row id in an xml by using the row tag <row id='rowIdHere'>, i would also like to do this, so that upon creation/population of the grid object i can store the values in my custom property..
i want the property only for the row..

thank you in advance again..
Answer posted by Support on Jun 30, 2008 01:46
>>i want the property only for the row..

When loading from XML any attribute of row or cell tag can be accessed programmatically.

<?xml version='1.0' encoding='iso-8859-1'?>
    <rows>
        <row id="unique_rowid" some="data">
                <cell some="data">cell content</cell>
        </row>
    </rows>


To access row attributes:
    grid.getRowAttribute("unique_rowid","some");
    grid.setRowAttribute("unique_rowid","some","new value");