Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Agile on Oct 31, 2008 21:51
open dhtmlx forum
Access userdata

Hi Team,

How to access the userdata in dhtmlxtree?

<item id="p1" text="parent item 1" select="1" call="1">
<userdata name="some1">value1</userdata>

I want to access value1 based on item id i.e.p1

Thanks.

-Agile
Answer posted by Support on Nov 03, 2008 01:09
It can be done using getUserData(id,name) method:

var ud = tree.getUserData("p1","some1");