Bug Report T1282655
Visible to All Users

Blazor - Filter popup in the navigation permission list view shows full paths instead of display names

created 2 days ago (modified 2 days ago)

Steps to reproduce:

  1. Run the project;
  2. Login as 'Admin';
  3. Go to the 'Role' list view;
  4. Open the 'Default' role detail view;
  5. Open the 'Navigation Permission' tab.
  6. Open a filter popup.

Expected results:

The popup shows the navigation's display names.

Current results:

The popup shows full paths.

Clipboard-File-1.png

Workaround:

C#
using DevExpress.Blazor; using DevExpress.ExpressApp; using DevExpress.ExpressApp.Blazor.Editors; using DevExpress.ExpressApp.Model.Core; using DevExpress.ExpressApp.SystemModule; namespace dxTestSolution.Module.Controllers; public class GridViewControllerBlazor :ObjectViewController<ListView, DevExpress.Persistent.BaseImpl.PermissionPolicy.PermissionPolicyNavigationPermissionObject> { protected override void OnViewControlsCreated() { base.OnViewControlsCreated(); if(View.Editor is DxGridListEditor gridListEditor) { gridListEditor.GridModel.CustomizeFilterMenu = testHandler; } } private void testHandler(GridCustomizeFilterMenuEventArgs args) { var navItems = GetNavigationItems(); foreach(var it in args.DataItems) { var navItem = navItems.Where(ni => ((ModelNode)ni).Path == it.DisplayText).FirstOrDefault(); if(navItem != null) { it.DisplayText = navItem.Caption; } } } private List<IModelNavigationItem> GetNavigationItems() { List<IModelNavigationItem> recursionNavItems = new List<IModelNavigationItem>(); IEnumerable<IModelNavigationItem> navItems = ((IModelApplicationNavigationItems)Application.Model).NavigationItems.Items; foreach(IModelNavigationItem item in navItems) { recursionNavItems.AddRange(GetNavigationItemsRecursive(item)); } return recursionNavItems; } private IEnumerable<IModelNavigationItem> GetNavigationItemsRecursive(IModelNavigationItem navItem) { List<IModelNavigationItem> resultNavItems = new List<IModelNavigationItem>(); resultNavItems.Add(navItem); foreach(IModelNavigationItem item in navItem.Items) { resultNavItems.AddRange(GetNavigationItemsRecursive(item)); } return resultNavItems; } }

Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.