Kbase P158419: How to create nodes and columns in an UltraTree using Visual Designer
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  14/01/2010 |
|
Status: Unverified
GOAL:
How to create nodes and columns in an UltraTree using Visual Designer
GOAL:
How to create an Ultra Tree in FreeForm style
GOAL:
How to show different columns at different levels of an UltraTree
GOAL:
How to bind columns in an UltraTree to columns in a ProBindingSource
FACT(s) (Environment):
Windows
OpenEdge 10.2A
FIX:
The UltraTree control can be made to appear in any of several different "styles" by setting its ViewStyle property to one of the members of the Infragistics.Win.UltraWinTree.ViewStyle enumeration. The FreeForm view style is unique in that it allows members of the same nodes collection to each display their own set of columns. OpenEdge Architect's Visual Designer can be used to assign columns from the UltraTree's binding source to various nodes. The following directions assume that a form containing an UltraTree control is opened in Visual Designer, and that the UltraTree is selected:
In the Properties view, set the ViewStyle property to FreeForm.
Expand the ColumnSettings section and open ColumnSets.
In the UltraTree ColumnSet Collection Editor, click the Add button. A New UltraTree ColumnSet dialog will open up. The ColumnSet is the group of columns that will appear at each one of the nodes in the trea.
Enter a key for the column set. The key is simply a unique name chosen to identify the column set. Click the OK button.
Repeat step 4 until a ColumnSet key has been added for each node in the tree.
For each key that was added:
Choose the Columns property. The UltraTreeNodeColumn Collection Editor will open up.
Add a column. The first columns will be added with the key "Column 1".
Change the Key property of the column to the name of a column in the ProBindingSource being used. This will allow OpenEdge to bind the column to the correct field in the data source.
Repeat steps 2 through 4 until all columns that should display with a given node have been added. Then click OK to save the columns and exit the UltraTreeNodeColumn Collection Editor.
Back in the UltraTree ColumnSet Collection Editor, click OK to save the column sets.