Skip to main content
A newer version of this page is available. .

Methods to Update the CardView State in Actions

When you handle specific data operations (paging, sorting or filtering), you need to update the CardView state with the state of the currently processed operation in the corresponding Actions. You can do this with ease by using specific operation-related methods exposed by the CardViewModel object. Each method accepts parameters representing the currently processed data operation’s state, which are automatically passed to a handling Action.

Operation

Method

Call with the Accepted Parameter(s) (Passed to Action)

Paging (CardViewOperationType.Paging)

CardViewModel.ApplyPagingState

ApplyPagingState(CardViewPagerState pagerState)

Sorting (CardViewOperationType.Sorting)

CardViewModel.ApplySortingState

ApplySortingState(CardViewColumnState columnState)

ApplySortingState(CardViewColumnState columnState, bool reset)

Filtering (CardViewOperationType.Filtering)

CardViewModel.ApplyFilteringState

ApplyFilteringState(CardViewFilteringState filteringState)

Refer to the Action Types and Passed Parameters topic to learn more on operation-specific parameters passed to handling Actions automatically.

See Also