We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Treeview Scrollbars

Is there a way to turn off the scrollbars on the treeview?


3 Replies

SS Suresh Sekarean Syncfusion Team December 12, 2007 03:59 AM UTC

Hi Kathy,

By setting the style attribute of TreeView control , 'Overflow' to 'hidden' , TreeView control scrollbars can be hidden.
Please refer the below code snippet.

[C#]

TreeView1.Attributes.CssStyle.Add(HtmlTextWriterStyle.Overflow, "hidden");

[VB]

TreeView1.Attributes.CssStyle.Add(HtmlTextWriterStyle.Overflow, "hidden")

Please try this and let us know if this helps.

Thanks for using Syncfusion products.

Regards,
Sureshsekaran.



KG Kathy Gray December 24, 2007 08:26 PM UTC

I tried your suggestion, but the scrollbars still appear when the tree is expanded.

>Hi Kathy,

By setting the style attribute of TreeView control , 'Overflow' to 'hidden' , TreeView control scrollbars can be hidden.
Please refer the below code snippet.

[C#]

TreeView1.Attributes.CssStyle.Add(HtmlTextWriterStyle.Overflow, "hidden");

[VB]

TreeView1.Attributes.CssStyle.Add(HtmlTextWriterStyle.Overflow, "hidden")

Please try this and let us know if this helps.

Thanks for using Syncfusion products.

Regards,
Sureshsekaran.





YG Yavanaarasi G Syncfusion Team December 27, 2007 09:57 AM UTC

Hi Kathy,

Sorry for the delay in responding.

I am afraid that i was not able to reproduce the issue. Also I have created a simple sample to test this issue and it is available in the following link:

http://websamples.syncfusion.com/samples/Tools.Web/6.1.0.34/F-70388/main.htm

Please try the above code and if still tha issue exists,could you please try to reproducing it in the above sample and send us the modified sample so that we could sort out the cause of the issue and provide you a solution?

Regards,
Yavana.G



Loader.
Live Chat Icon For mobile
Up arrow icon