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

Demonstrate how to show the number of List View items in the Navigation Control.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Demonstrate how to show the number of List View items in the Navigation Control.

License:Other


Languages

Language:C# 72.4%Language:HTML 27.6%