Events
The RadListView component exposes the following events:
Item events
-
ItemTapped - occurs when an item is tapped. The ItemTapped event handler receives two parameters:
- The sender argument which is of type object, but can be cast to the RadListView type.
- An ItemTapEventArgs object which has a reference to the tapped item through its Item property.
-
ItemHold - occurs when the end user is holding on a specific item. The ItemHold event handler receives two parameters:
- The sender argument which is of type object, but can be cast to the RadListView type.
- An ItemHoldEventArgs object which has a reference to the held item through its Item property.
-
RefreshRequested - occurs when the pull-to-refresh gesture is triggered. The RefreshRequested event handler receives two parameters:
- The sender argument which is of type object, but can be cast to the RadListView type.
- A PullToRefreshRequestedEventArgs object which provides Cancel property used to cancel the pull-to-refresh operation.
For more details on the RefreshRequested event usage go to Pull to Refresh topic.
Selection events
-
SelectionChanged - occurs when the SelectionItems collection is updated. The SelectionChanged event handler receives two parameters:
- The sender argument which is of type object, but can be cast to the RadListView type.
- A NotifyCollectionChangedEventArgs object which provides information on the collection changed event. For more details check NotifyCollectionChangedEventArgs Class topic.
Group/Reorder events
-
GroupHeaderTapped - occurs when a group header of a grouped ListView is tapped. The GroupHeaderTapped event handler receives two parameters:
- The sender argument which is of type object, but can be cast to the RadListView type.
- A GroupHeaderTapEventArgs object which provides the following properties:
- Key - gets the specific key for the group;
- Items - gets the child items of the group;
-
ReorderStarting - occurs when a reorder operation is about to start. The ReorderStarting event handler receives two parameters:
- The sender argument which is of type object, but can be cast to the RadListView type.
- A ReorderStartingEventArgs object provides the following properties:
- Item - gets the item that is about to be dragged;
- Cancel - boolean property which can be used to cancel the reorder operation;
-
ReorderEnded - occurs when a reorder operation has ended. The ReorderEnded event handler receives two parameters:
- The sender argument which is of type object, but can be cast to the RadListView type.
- A ReorderEndedEventArgs object which has a reference to the item that was reordered through its Item property;
Swipe Events
RadListView exposes a few useful events related to the item swiping feature, namely ItemSwipeStarting, ItemSwiping and ItemSwipeCompleted. For detailed information on the swiping events usage go to Cell Swipe topic.