Prerequisites
Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
- What is your product version? 11.2
- What is your product type (Angular or MVC)? Angular
- What is product framework type (.net framework or .net core)? .net core
I have a large application with alot of Menus hence a lot of permissions.
Everything loads fast and works fine except any page with Permissions (e.g. Users -> Edit or Roles-> Edit ). These permission pages take about 3-5 mins to load. On some browsers, it makes the browsers start prompting if to wait or exit.
Is there a way to implement Auto scroll or Pagination for the Permissions if the number of Permissions is the problem. (There are about 12,000 Permissions in ALL for the entire app)
3 Answer(s)
-
0
Hi @ayoyusuf
You can follow two approaches here.
- If the root item count is not much, you can load the root items first and when an item is clicked, you can load its child items.
- If the root item count is high, you can use a datatable instead of a tree but this option is not a good solution.
-
0
Hi, Thanks for the Feedback.
We do think option one would be a much better option.
Do you have any sample code that can be re-used or modified for this suggested methodology?
-
0
Hi,
For the UI part, you can use https://www.primefaces.org/primeng/tree/lazy. For server side, I think it is better to create a new app service method in OrganizationUnitAppService to load child of a given OU item. For the first request, you can send the parent node as null to load root items.