Categories | Question details Back To List | ||
attach an event toa tree defined with inline xml Hi I have a tree defined with inline xml and i need to attach an event (an onOpenEnd event to be specific). I know how to do this in raw javascript but im not sure with an xml tree, any ideas? thanks Scott Answer posted by Support on Feb 06, 2009 04:39 There is no way to attach events directly from xml , but if you mean init from HTML with inline XML , you can use attributes of container tag for such tasks <div class="dhtmlxTree" setOnOpenEndHandler="name_of_handler_function" ... Answer posted by scott on Feb 06, 2009 04:41 thats what i was looking for, it wasn't in the api though many thanks Answer posted by Support on Feb 06, 2009 06:38 any method of tree, which starts from "set" or "enable", can be defined through attribute with the same name |