Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by umesh on Oct 15, 2007 01:44
open dhtmlx forum
DHTML combo

I've added xml node which have key, value pair in grid

eg
...
...
e1 = xmldoc.createElementNS(null,"cell");
e1.setAttributeNS(null,"CatCode", "emp001");
n = xmldoc.createTextNode("emp name");

but if i say
gell.cells(rId,i).getValue(); ==> return "emp name" instead of "emp001"

how to get key (emp001)?
Answer posted on Oct 15, 2007 09:13
Grid doesn't store unrecognized attributes from XML, only known one stored and can be accessed in some way.
To store additional data you can use "userdata" sections.

( also it is possible to write custom excell which will recognize|store custom attributes )