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.
- 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.
- 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:
- Access Controller’s Events and Properties
- XAF - How to show the number of nested List View items in tab captions
(you will be redirected to DevExpress.com to submit your response)