ListViewTraverser
Traverses the items in a list view, respecting grouping, visibility, and the Traversing event.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class ListViewTraverser : ITraverser<ListViewDataItem>, IDisposable, IEnumerator, IEnumerable
Inheritance: objectListViewTraverser
Implements:
Constructors
Initializes a traverser for the specified list-view element.
public ListViewTraverser(RadListViewElement owner)
The list-view element whose items and groups are traversed.
Properties
Gets the current item, which can be a group header when grouped traversal is active.
public ListViewDataItem Current { get; }
Gets whether traversal follows the active groups instead of the flat item collection.
public bool IsGroupingEnabled { get; }
Methods
Does nothing because the traverser holds no disposable resources.
public void Dispose()
Implements:
Creates a separate traverser initialized at the current position.
public IEnumerator GetEnumerator()
A new traverser with a copy of this traverser's position.
Implements:
Moves to an item and returns its zero-based index among eligible items.
public int MoveTo(ListViewDataItem item)
The item to locate.
Returns:The item's index, or -1 if it is not reached during traversal.
Raises Traversing for a candidate item.
protected virtual void OnTraversing(ListViewTraversingEventArgs e)
The candidate item and its processing flag.
Resets the traversal position so the next move starts at the beginning.
public void Reset()
Implements:
Updates the internal group and item indices for the specified position.
protected virtual void SetPositionCore(object value)
The position whose indices are calculated.
Events
Occurs for each candidate item that passes visibility and collapsed-group checks.
public event ListViewTraversingEventHandler Traversing