Open Closed

more than level #6841


User avatar
0
nabass created

hi sir i have 2 tables in database (Account / ChartOfAccount) i've made a tree view into Account Page like first image and i made a lookup to show this account into ChartOfAccount CreateModal like second image as a checkbox and it works very good BUT what i want to do is shows records within Account tab as a checkbox but more than one level you can see in image number 2 it is a one level almost into a first image is two levels (parent & child) i want the same into Account tab like image number 3 it is an example for what i want to do

  • ABP Framework version: v8
  • UI Type: MVC
  • Database System: EF Core (SQL Server) :
Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

5 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Hi,

    You can change the spacing yourself

    This is how ABP does it you can refer to https://github.com/abpframework/abp/blob/dev/modules/permission-management/src/Volo.Abp.PermissionManagement.Web/Pages/AbpPermissionManagement/PermissionManagementModal.cshtml#L47 https://github.com/abpframework/abp/blob/dev/modules/permission-management/src/Volo.Abp.PermissionManagement.Web/Pages/AbpPermissionManagement/PermissionManagementModal.cshtml.cs#L73

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    nabass created

    Hi I don't want to do spacing Already records within first image showed into second image via using lookup but it's showing as one level and i want it as a group of parent and childs

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Hi,

    You can refer to the user edit page:

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    nabass created

    hi yes i want to make a shape like this but using a checkbox instead of tree shape how can or where can i find or what the steps to do this?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    I've explained it here: https://support.abp.io/QA/Questions/6841/more-than-level#answer-3a11428d-7843-2605-31cf-e7cb1d65c00e

    This is how ABP does it you can refer to https://github.com/abpframework/abp/blob/dev/modules/permission-management/src/Volo.Abp.PermissionManagement.Web/Pages/AbpPermissionManagement/PermissionManagementModal.cshtml#L47 https://github.com/abpframework/abp/blob/dev/modules/permission-management/src/Volo.Abp.PermissionManagement.Web/Pages/AbpPermissionManagement/PermissionManagementModal.cshtml.cs#L73

    You also need to use the JS event to handle parent or child selection https://github.com/abpframework/abp/blob/dev/modules/permission-management/src/Volo.Abp.PermissionManagement.Web/Pages/AbpPermissionManagement/permission-management-modal.js#L8

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 23, 2026, 09:57
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.