forum looking for an answer.
Any help would be appreciated.
Hi to all
sorry for the question
I am trying to get the code working !!!
am i correct in thinking i add the bottom section to the bottom of the tree_tpl ??
if that is correct then i can't get it to work is there any think else i need to change
Make sure you use PRO version of the script.
It is the Pro version i am using
Ok, then submit a support ticket attaching your code, we'll take a look.
How would I implement that code in the dynamicly generated code, like in demo.asp and tree/items.asp?
Btw: Wonderful product, it was a breeze customizing it for use with my SQL database and structure because of the excellent asp/access-demo! :)
The above modifications are in the template structure which is usually in the static file (tree_tpl.js) so there should be no difference if you generate the items structure (tree_items.[php/asp/whatever]) dynamically.
It was a stupid copy+paste error in the collapse_all function, my mistake.
However, I am not getting the expected behaviour. The onItemSelectHandler fires as expected, but function collapse_all is never fired.
Added the event-handlers to tree_tpl.js
'onItemOpen' : 'onItemSelectHandler'
Added functions onItemSelectHandler and collapse_all to demo.asp (and inserted alerts to make sure they actually fire).
Everything still works as before, and onItemSelectHandler is fired, but collapse_all is never fired.
Any help will be greatly appreciated. :)
collapse_all is called by onItemSelectHandler for the trees other than one generated the event. Since you have only one tree on the page and it's the only source of event, collapse_all is not called at all. It's probably something different that you need. For the one-opened-branch-at-a-time sample see the product documentation.