This content has been marked as final. Show 4 replies
Any luck i'm stuck up with same issue. Did you fix up it up
Actually I did find a solution to my issue and why it is showing the the VScroll Bar.
In the DataDescriptor when my hidden items are getting added to the collection, i am dispatching an event on the model (the event is the collection event of kind add) and when the collection got this event it would update it's "size" and then the tree would think its display was larger than it really was and hence the VScroll bar. So i removed my dispatch event so the collection would not update it's "size"
This fixed my issue, and hopefully this helps you out some Arun.
My issue is i'm not getting Vscrollbar on dynamic loading(lazy loading). I'm using flex 3 with cairngorm framework. Loading all children(dynamically) in getchildren method of datadescriptor. Here is my descriptors file
public class PickListTreeDescriptor extends DefaultDataDescriptor
public function PickListTreeDescriptor()
override public function getData(node:Object, model:Object=null):Object
override public function hasChildren(node:Object, model:Object=null):Boolean
override public function isBranch(node:Object, model:Object=null):Boolean
override public function getChildren(node:Object, model:Object=null):ICollectionView
var epsVO : ProjwbsVO = ProjwbsVO(node);
// this check for delay loading once the data is loaded it should not make a remote call again
if(epsVO.isProjectsLoaded == false)
epsVO.isProjectsLoaded = true;
var projectEvent : GetProjectEvent = new GetProjectEvent(null);
projectEvent.projwbsVO = epsVO;
var collection:ICollectionView = ICollectionView(model);
var event:CollectionEvent = new CollectionEvent(CollectionEvent.COLLECTION_CHANGE);
event.kind = CollectionEventKind.ADD;
event.items = ArrayCollection(epsVO.children).toArray();
Projwbs is my object in Arraycollection. Hierachy is like EPS can have projects(leafnode) and child Eps(branch node). EPS is determined if projwbs.isEps returns true.
On UI it gives a single root node in a collapsed state. When i expand it furthur it gives child EPS and projects in it. On expanding root node i get childrens but in screen Vscrollbar is not visible.
Please let me know if you have any thougts on this.