Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by olof on Jul 02, 2008 06:16
open dhtmlx forum
Get Attribute from cell

Hi,

I was wondering if there is a way to get an attribute from a cell in the dhtmlx treegrid?

I know there is one to get the attribute from a row

grid.getRowAttribute("unique_rowid","attributename");

but is there a way to get this from a cell instead like:

grid.getCellAttribute("unique_cellId","attributename");

/Olof
Answer posted by Support on Jul 02, 2008 08:54
>>but is there a way to get this from a cell instead like:

http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Storing_additional_data.html#grid_art_userdata

To access cell attributes:
    grid.cells(i,j).getAttribute("some");
    grid.cells(i,j).setAttribute("some","new value");