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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

MultiColumnTreeView

Thread ID:

Created:

Updated:

Platform:

Replies:

67171 Aug 9,2007 03:49 PM UTC Aug 13,2007 09:42 PM UTC Windows Forms 5
loading
Tags: Tools
Josh Collins
Asked On August 9, 2007 03:49 PM UTC

I cannot get vertical scrolling to work with a multi-column tree view.

Attached is a project exhibiting the behavior.

Using VS.Net 2005 C#.

I have tried 5.1.1.9 and 5.1.1.41 and both exhibit the same issue.

I cannot change the VScroll property in the designer (switches back to false).
Setting it to true in the code or using tree.AutoScroll = ScrollBars.Vertical does not affect it.

I have seen this thread below, but didn't see any real resolution.
http://www.syncfusion.com/support/forums/message.aspx?MessageID=62022

I need a solution to this ASAP.

Thanks,
jc

Ajish [Syncfusion]
Replied On August 9, 2007 10:43 PM UTC


Hi Josh,

The default behaviour of MultiColumnTreeview is that the Vscroll and the HScroll properties can only be set when the number of nodes populated at design time or at runtime are more than the controls view area. The Scrollbars will only appear when the number of nodes loaded are more than the TreeView height, provided we set the Vscroll to true after loading the nodes.

Kindly try it and let me know if this helps in resolving your issue.

Regards,
Ajish.

Josh Collins
Replied On August 9, 2007 11:28 PM UTC

How would this work if the control is docked to 'fill' and the height of the control is variable?

Are you suggesting that I set VScroll = true after all nodes are loaded and after each node expansion?

Why is this behavior so much different from the expected behavior of the TreeViewAdv

Ajish [Syncfusion]
Replied On August 10, 2007 08:05 PM UTC

Hi Josh,

Here is the details for your questions,

How would this work if the control is docked to 'fill' and the height of the control is variable?

- The Scrollbars will appear when the number of nodes loaded are more than the TreeView height

Are you suggesting that I set VScroll = true after all nodes are loaded and after each node expansion?

- you need to set the VScroll = true after the nodes are loaded. Since the scroll cannot work on empty node collection.

Kindly let me know if you need any additional details,

Regards,
Ajish.

Josh Collins
Replied On August 12, 2007 07:21 PM UTC

Setting VScroll to true after the nodes are loaded does not fix my issue. After the nodes are expanded to the point where it should scroll, the vertical scroll bar does not appear.

Ajish [Syncfusion]
Replied On August 13, 2007 09:42 PM UTC

Hi Josh,


The Scrollbars appears only when the number of nodes loaded are more than the TreeView height. So it is necessary to set vscroll = true after each node expansion. Here is a sample for your reference,

Sample: http://websamples.syncfusion.com/samples/Tools.Windows/F67171/main.htm

Kindly take a look at the sample and let me know if this helps in resolving the issue.

Regards,
Ajish.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;