Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 2.59 KB

File metadata and controls

32 lines (21 loc) · 2.59 KB

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