ListViewGroupFactory
Creates data-view groups for list-view items and synchronizes the list view's automatic group headers with the groups produced by its collection view.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class ListViewGroupFactory : IGroupFactory<ListViewDataItem>
Inheritance: objectListViewGroupFactory
Implements:
Constructors
Creates the factory used to keep automatic group headers in sync with the specified list view.
public ListViewGroupFactory(RadListViewElement owner)
The list view element whose automatic groups are maintained.
Methods
Synchronizes the owner's automatic group headers with the supplied groups, reusing existing headers for groups that remain and ordering them to match the collection view.
public GroupCollection<ListViewDataItem> CreateCollection(IList<Group<ListViewDataItem>> list)
The groups produced by the collection view.
Returns:GroupCollection<ListViewDataItem>
A group collection that wraps list.
Implements:
Creates a data-view group with the supplied key and parent.
public Group<ListViewDataItem> CreateGroup(object key, Group<ListViewDataItem> parent, params object[] metaData)
The value identifying the group.
parentGroup<ListViewDataItem>The parent group, or null for a root group.
metaDataobject[]Additional group metadata; this implementation does not use it.
Returns:The new group for list-view data items.
Implements: