Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by mongkol on Aug 01, 2008 23:59
open dhtmlx forum
Why have double action on tree?

on the first time i loadXML for draw tree and when i click on some node on tree.it have one action. that right.
but on same tree i use DhxTreeList.deleteChildItems(0); and loadXML again. When i click on node it have action 2 time.
and when DhxTreeList.deleteChildItems(0); and loadXML again. it have action 3 time.
Answer posted by Support on Aug 04, 2008 01:42

Do you define action only once, or each time after grid loading?
Please beware that already attached actions not removed when tree reloaded with new data

If problem still occurs - please provide a code snippet, used for attaching events to the tree.