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) :

5 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team 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

  • 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

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    You can refer to the user edit page:

  • 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?

  • User Avatar
    0
    liangshiwei created
    Support Team 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

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11