Skip to content

DevExpress-Examples/XAF-How-to-show-the-number-of-list-view-items-in-the-navigation-control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XAF - How to show the number of List View items in the Navigation Control

Scenario

In this example, we demonstrate how to show the number of List View items in the Navigation Control. You can add or delete items in List Views. The record count in navigation item captions will be automatically updated.

ASP.NET Core Blazor

image

Implementation Steps

  1. Create a View Controller. In the overridden OnActivated method, handle the IObjectSpace.Committed event. In this event handler, call the ShowNavigationItemController.RecreateNavigationItems method to re-create the Navigation System items after saving changes made in the current Grid List editor.
  2. Create a Window Controller. Handle the ShowNavigationItemController.NavigationItemCreated event in the overridden OnFrameAssigned method. In this event handler, specify the item caption via the e.NavigationItem.Caption property.

Files to look at:

See Also