Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by abhishek on Sep 07, 2009 03:17
open dhtmlx forum
tree: how to add and retrieve custom attribute values in a tree

tree: how to add and retrieve custom attribute values in a tree?
Answer posted by Alex (suppot) on Sep 07, 2009 04:29

You can use getAttribute and setAttribute methods (dhtmlxtree_attrs.js should be included):

tree.setAttribute(id,attr_name,attr_value);

var attr_value = tree.getAttribute(id,attr_name);

Answer posted on Sep 07, 2009 22:57
where can i find the dhtmlxtree_attrs.js file?
Also i didnot see tree.setAttribute(id,attr_name,attr_value); and tree.getAttribute(id,attr_name); functions in the given API
Answer posted by Alex (support) on Sep 08, 2009 03:22

>> Also i didnot see tree.setAttribute(id,attr_name,attr_value); and tree.getAttribute(id,attr_name); functions in the given API

There methods are missed. We'll add them

>> where can i find the dhtmlxtree_attrs.js file?

This extension is available only in the PRO edition: dhtmlxTree/codebase/ext/dhtmlxtree_attrs.js