I already created a record which represents my node data and now, I want handle properly the event OnChange
, for every time I click in a different node, it call the events once (not twice, this is my problem).
This tree shows a directory's structure of compressed files. Every time I click in an item of the tree, it loads the list of files contained in that folder. But when I use OnChange
event and I click in an item (or I press up/down arrows keys), it calls the event twice making my application load the file list two times sequentially.
How can I use properly an event to load file list ONLY when the focused item change?