Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
150
WinTree Node Depth
posted

I'm having an issue with my WinTree.  I have an object being used as the data source.  This object has a property which is a collection of itself.  The object is used to represent a category.  Therefore, the child collection would be 2nd level sub categories.  In my case, I need this to be 3 levels deep.  This means that each child object in the parents' subcategory collection can also have a collection which would represent the 3rd level categories.  When I bind my object, which is a collection of parent categories, who may or may not have 2nd level categories as well may or may not have 3rd level categories.  When this tree gets rendered, I'm only able to expand to the 2nd level.  There are no 3rd level categories rendered.  The following are the properties I have changed on the UltraTree:

 

AllowDrop = True ColumnSettings.BorderStyleCell = Infragistics.Win.UIElementBorderStyle.None ColumnSettings.BorderStyleColumnHeader = Infragistics.Win.UIElementBorderStyle.None ImageTransparentColor = System.Drawing.Color.Transparent Location = New System.Drawing.Point(12, 12) Name = "treeProductCategories" NodeConnectorColor = System.Drawing.SystemColors.ControlDark Override1.BorderStyleNode = Infragistics.Win.UIElementBorderStyle.None Override = Override1 Size = New System.Drawing.Size(377, 391) TabIndex = 9 ViewStyle = Infragistics.Win.UltraWinTree.ViewStyle.OutlookExpress

 

Additionally I am handling the ColumnSetGenerated event only to set the following:

 

e.ColumnSet.LabelPosition = Infragistics.Win.UltraWinTree.NodeLayoutLabelPosition.Top

 

I am using NetAdvantage for Windows Forms 2011.1 CLR2. Given the above, is there any reason why the 3rd level categories would not render? Also, as another problem, if I use the ColumnSetGenerated event to iterate over the columns and remove the ones I don't want displayed, no children are displayed at all. Any help you may provide is greatly appreciated.

 

Thanks,

Nick