How i made: create or edit some params in xml.
Fow example, i need more elemet in taf :
simple:
i need:
and i need edit this parameters: param1 & param2
You can use any custom attributes in XML, and later use
var value = tree.getAttribute(id,“param1”);
…
tree.setAttribute(id,“param1”,value)
( dhtmlxtree_attrs.js required )
nice, but this function is not described in DHTMLX Docs Explorer.
can we do the same thing for grid/treegrid? or is that only for tree?
can we do the same thing for grid/treegrid? or is that only for tree?
Similar functionality available for grid
dhtmlx.com/docs/products/dhtmlxG … t_userdata
ok, this function maybe run in greed,
but i use tree and:
Tree.getAttribute(‘param1’);
not found this function.
The question is opened;
corret by prev post:
Tree.getAttribute(id,‘param1’);
In case of dhtmlxtree, you need to inlude
codebase/ext/dhtmlxtree_attrs.js required
this extension will add support for getAttribute|setAttribute methods.
at this link i found answer for my question: dhtmlx.com/docs/products/kb/inde … e=1&q=5495
You can use two ways to store additional data
userdata
tree.setUserData(id,“type”,“typeA”);
cell ( pro only, dhtmlxtree_attrs.js )
tree.setAttribute(id,“type”,“typeA”)
but in Doc’s i can’t find describe about this function and can’t read that this function avaliable at prof version.
Documentation will be updated in nearest time.