Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Treeview > radTreeView disable scrollbar

Answered radTreeView disable scrollbar

Feed from this thread
  • Michael avatar

    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 admin's avatar

    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 avatar

    Posted on Aug 8, 2008 (permalink)

    This is working fine,
    thanks a lot !

    Michael

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Treeview > radTreeView disable scrollbar
Related resources for "radTreeView disable scrollbar"

[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]