Any ideas out there?
the only variant for you is to use iconFunctions and itemOpen and itemClose eventListeners.
In itemOpen and ItemClose eventListeners you should change property (for example _isOpened) in dataProvider to ditinguish open and closed Directories.
In iconFunction you should check this property and type of data to return correct icon.
Hope this helpful.
Why didn't I think of that? Well, I'm not you. Thanks. I willtry it out and
let you know how it goes.
I got this work after a couple of tries.
The combination of the iconfunction and the
item listeners did the trick.
The AdvancedDatagrid tracks open items so
by default the rest are closed.
I found it easier to just maintain the state
separately. My grid will be pretty small so
this did the trick.