New to Telerik UI for .NET MAUIStart a free 30-day trial

Defines a type that has a notation for a Current item. This notation is typical for data-bound components like RadDataGrid.

Definition

Namespace:Telerik.Maui

Assembly:Telerik.Maui.Core.dll

Syntax:

C#
public interface ISupportCurrentItem

Properties

Gets the object instance that is considered Current.

C#
object CurrentItem { get; }

Gets a value indicating whether the current item is within the data view. For example if a filtering operation is applied, the current item may not be visible.

C#
bool IsCurrentItemInView { get; }

Methods

Attempts to set the CurrentItem to the provided object instance.

C#
bool MoveCurrentTo(object item)
Parameters:itemobject

The object instance to set as current.

Returns:

bool

True if the operation succeeded, false otherwise.

Attempts to move the CurrentItem to the first item in the view.

C#
bool MoveCurrentToFirst()
Returns:

bool

True if the operation succeeded, false otherwise.

Attempts to move the CurrentItem to the last item in the view.

C#
bool MoveCurrentToLast()
Returns:

bool

True if the operation succeeded, false otherwise.

Attempts to move the CurrentItem to the item next to the CurrentItem in the view.

C#
bool MoveCurrentToNext()
Returns:

bool

True if the operation succeeded, false otherwise.

Attempts to move the CurrentItem to the item previous to the CurrentItem in the view.

C#
bool MoveCurrentToPrevious()
Returns:

bool

True if the operation succeeded, false otherwise.