PDA

View Full Version : Scroll-bars for TreeGrid's body instead of TreeView



prasanth_kodali
9 Apr 2014, 9:26 AM
Hi,

How can we configure to have scrollbars for a Tree-grid's body instead of its view and make the tree-view extend/shrink in height as rows are added or removed from the tree-view (in extjs 4.2.2)?

Thanks in advance.

Gary Schlosberg
16 Apr 2014, 8:31 PM
Isn't that the way it works now?
https://fiddle.sencha.com/#fiddle/55s

Guessing this isn't meeting your needs, but the tree view extends when rows are added, shrinks when rows are removed, no?

prasanth_kodali
22 Apr 2014, 12:56 AM
Yes, I'm actually trying to remove the horizontal scroll bar and resize the content to fit in the available width. But not sure how to accomplish it. So, I was trying to see if it would be possible to have scroll-bars on body of tree panel instead of tree-view and hoping that somehow I would be able to remove the horizontal scroll-bar. If the horizontal scroll-bar can be removed on the tree-view directly, even that would suit my need. I might be missing some thing trivial here, but unable to figure it out at the moment...

prasanth_kodali
22 Apr 2014, 12:59 AM
Also the horizontal scroll-bar seems to be appearing randomly and not every time...