Hurry Up, Ends March 14!
Open Closed

Customize Permission Management Modal in Blazor #2441


User avatar
0
balessi75 created

Abp 4.4.3 Commercial (Enterprise) / Blazor Server / EF

Hello,
We need to customize the ordering of permission groups in the permission management modal. We used the following document as a reference... https://docs.abp.io/en/abp/4.4/UI/Blazor/Customization-Overriding-Components

Under ...Blazor\Components in our solution, we created a MyPermissionManagmentModal.razor and MyPermissionManagementModal.razor.cs file. We then copied the corresponding source from...
https://github.com/abpframework/abp/tree/rel-4.4/modules/permission-management/src/Volo.Abp.PermissionManagement.Blazor/Components
into our razor and razor code-behind file.

Our MyPermissionManagementModal inherits from Abp's PermissionManagmentModal and we decorated our Modal with...
[ExposeServices(typeof(PermissionManagementModal))]
[Dependency(ReplaceServices = true)]

At runtime, we can see that a breakpoint is hit in the constructor of MyPermissionManagementModal which is good, however, when we click to open the modal, we receive the following...
An internal error occurred during your request!
2022-01-18 16:21:58.742 -05:00 [ERR] Delegate to an instance method cannot have null 'this'.
System.ArgumentException: Delegate to an instance method cannot have null 'this'.
at System.MulticastDelegate.ThrowNullThisInDelegateToInstance()
at Volo.Abp.PermissionManagement.Blazor.Components.PermissionManagementModal.OpenAsync(String providerName, String providerKey, String entityDisplayName)

A break point in our modal at OpenAsync never gets hit.

We are at a loss as to where to go from here and are wondering if we are attempting to solve this problem in an incorrect way.
Any help would be greatly appreciated.

Thank you!


4 Answer(s)
Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 13, 2025, 04:08