Home> Products> SPSRollUp WebPart> SPSRollUpTree - Aggregate in a tree view

SPSRollUpTree - Aggregate in a tree view

Included in version 2 of SPSRollUp there is a new webpart to roll up data and show it in a tree view control.

SPSRollUpTree has a similar operation to the SPSRollUp, and this means that it tracks sites and lists collecting information, but in this case the data use a XML Tree configuration to output the data using a tree view control.

The XML configuration define the tree branches and the leaf node. Finally when a leaf node is clicked if the SPSRollUpTree is connected to another webpart it send the selected row of data.

 

The XML Tree configuration

SPSTree – Element for the tree configuration (changed)

Attributes:

ImageSet
-  (string) - Use the ImageSet attribute to specify the group of images to use for the TreeView control. You can either select a predefined set of images to give the control a standard look or define your own custom set.
(Msdn, Faq, BulletedList, BulletedList2, BulletedList3, BulletedList4, Contacts, Custom, Events, Inbox, News, Simple, Simple2, WindowsHelp, XPFileExplorer)

ExpandDepth - (int) - Sets the number of levels that are expanded when a TreeView  control is displayed for the first time.

ExpandAll - (boolean) - If true opens every node in the tree.

NodeIndent - (int) - Sets the indentation amount (in pixels) for the child nodes of the TreeView control.

ShowLines - (boolean) - Sets a value indicating whether lines connecting child nodes to parent nodes are displayed.

ShowExpandCollapse - (boolean) - Sets a value indicating whether expansion node indicators are displayed.

Contains elements

SPSBranchItem (min 1 max n)
SPSLeafNode (min 1)

SPSBranchItem – Element for the tree branch

Attributes:

FieldName
-  (string) - Name of field used for the branch
ImageUrl - (string) - Sets the image used in the branch

SPSLeafItem – Element for the leaf node

Attributes:

FieldName
-  (string) - Name of field used for the leaf node
ImageUrl - (string) - Sets the image used in the leaf node

Sample

<SPSTree ImageSet="Msdn">
  <SPSBranchItem FieldName="_SiteTitle" />
  <SPSBranchItem FieldName="Status" />
  <SPSLeafItem FieldName="Title" />
</SPSTree>