Log In
[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]ASP.NET WebForms Controls
 [Collapse]ASP.NET MVC Extensions
  [Expand]Product Information
  [Expand]Getting Started
  [Expand]Common Concepts
  [Expand]Grid View
  [Collapse]Card View
    Overview - CardView
    Main Features - Card View
    [Expand]Binding to Data
    [Expand]Data Representation Basics
    [Collapse]Focus and Navigation
      Focused Card
     [Expand]Paging and Scrolling
    [Expand]Data Editing and Validation
  [Expand]Vertical Grid
  [Expand]Rich Text Editor
  [Expand]HTML Editor
  [Expand]Image and Data Browsing
  [Expand]Docking and Popups
  [Expand]Navigation and Layout Extensions
  [Expand]File Management
  [Expand]Multi-Use Site Extensions
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Data Editor Extensions
  [Expand]Report Extensions
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Report Server
[Expand]eXpressApp Framework
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Focused Card

The DevExpress MVC CardView provides the Focused Card feature. By default, this feature is disabled. To enable it, set the SettingsBehavior.AllowFocusedCard (see ASPxCardViewBehaviorSettings.AllowFocusedCard) option to true.

The style settings defining the appearance of the focused card can be accessed and customized using the Styles.FocusedCard (see CardViewStyles.FocusedCard) property.

Expanded Manipulating Focus on the Server-Side

The focused card is identified by the MVCxCardView.FocusedCardIndex property (see ASPxCardView.FocusedCardIndex). Use this property to move card focus within the current page.

View code:

Expanded Manipulating Focus on the Client-Side

End-users move card focus by clicking the cards they need. To identify the currently focused card, use the ASPxClientCardView.GetFocusedCardIndex client method. To move card focus, use the ASPxClientCardView.SetFocusedCardIndex method.

To respond to changing card focus, handle the ASPxClientCardView.FocusedCardChanged client event.

How would you rate this topic?​​​​​​​