This content has been marked as final.
Show 3 replies
-
1. Re: control the scrolling of rich tree
nbelaevski Jan 21, 2009 5:25 PM (in response to mahdia)Hi,
Currently it is not possible to control this out of the box. Implementation is here: http://fisheye.jboss.org/browse/RichFaces/trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree.js?r=12086 - lines 219 - 234 -
2. Re: control the scrolling of rich tree
keithmoon Jan 22, 2009 9:09 AM (in response to mahdia)Hi,
you can control it with java script.function setScrollHeight(){ var scroll = document.getElementById('the:element'); var scroll_higher = scroll.scrollTop + 400; scroll.scrollTop = scroll_higher; }
-
3. Re: Re: control the scrolling of rich tree
pbaker01 Nov 30, 2014 11:16 PM (in response to keithmoon)I used a similar approach:
See line 9. Thanks for the tip.
<rich:treeNode type="branch" toggleListener="#{itemCategoryController.processTreeToggle}" expanded="#{node.expanded}" rendered="#{!node.hide}" iconExpanded="/resources/default/1_0/img/tree/Folder.gif" iconCollapsed="/resources/default/1_0/img/tree/Folder.gif" ondblclick="#{mnat:concat(popUpId,'PrcBrnchSel()')}" ontoggle="this.scrollIntoView(true);"> #{node.category.categoryName} </rich:treeNode>