Michael
Posted
on Aug 7, 2008
(permalink)
Hello,
I want to disable the scrollbars of a radTreeView. Could you please help me to do this. I have already tried to set to false the Visible and/or the Enable properties of VerticalScroll and/or HScrollBar, but the scrollbars are still visible.
Thanks.
Best regards,
Michael
Reply
Answer
Jordan
Jordan
Posted
on Aug 8, 2008
(permalink)
Hello Michael,
That is because the visibility of the scrollbars in RadTreeView is updated on layout.
You could handle the
VisibleChanged event of the scrollbars and in the handler set the visibility to false like:
| public Form1() |
| { |
| InitializeComponent(); |
| |
| this.radTreeView1.HScrollBar.VisibleChanged += new EventHandler(HScrollBar_VisibleChanged); |
| } |
| |
| void HScrollBar_VisibleChanged(object sender, EventArgs e) |
| { |
| this.radTreeView1.HScrollBar.Visible = false; |
| } |
Hope this helps.
Best wishes,
Jordan
the Telerik team
Check out
Telerik Trainer, the state of the art learning tool for Telerik products.
Reply
Michael
Posted
on Aug 8, 2008
(permalink)
This is working fine,
thanks a lot !
Michael
Reply