Header Cells in the Editable grid

Certified Lead Developer

 I have question, 

Can we hide the header cells in the editable grids which are empty?

  Discussion posts and replies are publicly visible

Parents
  • Hi Santosh,

    The below code may help for you.

    load(
    local!isShowWhen:true(),
    a!gridLayout(
    label: "",
    emptyGridMessage: "No Records Available",
    columnConfigs: {
    a!gridLayoutColumnConfig(
    width: "DISTRIBUTE",
    weight: "1"
    ),
    a!gridLayoutColumnConfig(
    width: "DISTRIBUTE",
    weight: "1"
    ),
    a!gridLayoutColumnConfig(
    width: "DISTRIBUTE",
    weight: "2"
    ),
    a!gridLayoutColumnConfig(
    width: "DISTRIBUTE",
    weight: "2"
    )
    },
    headerCells: {
    a!gridLayoutHeaderCell(
    label: "Process/Module",
    align: "LEFT"
    ),
    a!gridLayoutHeaderCell(
    label: "Topic",
    align: "LEFT"
    ),
    a!gridLayoutHeaderCell(
    label: "Responsible",
    align: "LEFT"
    ),
    a!gridLayoutHeaderCell(
    label: "Representative",
    align: "LEFT"
    ),
    a!gridLayoutHeaderCell(
    label: "Decision",
    align: "LEFT",
    showWhen:not(local!isShowWhen)
    ),
    a!gridLayoutHeaderCell(
    label: "ReportType",
    align: "LEFT",
    showWhen: not(local!isShowWhen)
    )
    }
    )
    )
Reply
  • Hi Santosh,

    The below code may help for you.

    load(
    local!isShowWhen:true(),
    a!gridLayout(
    label: "",
    emptyGridMessage: "No Records Available",
    columnConfigs: {
    a!gridLayoutColumnConfig(
    width: "DISTRIBUTE",
    weight: "1"
    ),
    a!gridLayoutColumnConfig(
    width: "DISTRIBUTE",
    weight: "1"
    ),
    a!gridLayoutColumnConfig(
    width: "DISTRIBUTE",
    weight: "2"
    ),
    a!gridLayoutColumnConfig(
    width: "DISTRIBUTE",
    weight: "2"
    )
    },
    headerCells: {
    a!gridLayoutHeaderCell(
    label: "Process/Module",
    align: "LEFT"
    ),
    a!gridLayoutHeaderCell(
    label: "Topic",
    align: "LEFT"
    ),
    a!gridLayoutHeaderCell(
    label: "Responsible",
    align: "LEFT"
    ),
    a!gridLayoutHeaderCell(
    label: "Representative",
    align: "LEFT"
    ),
    a!gridLayoutHeaderCell(
    label: "Decision",
    align: "LEFT",
    showWhen:not(local!isShowWhen)
    ),
    a!gridLayoutHeaderCell(
    label: "ReportType",
    align: "LEFT",
    showWhen: not(local!isShowWhen)
    )
    }
    )
    )
Children
No Data