Radio Buttons and Read Only Grid

Certified Senior Developer

Hi All,

Is it possible to have radio buttons in a grid column of a read only grid? 

Thanks in advance

  Discussion posts and replies are publicly visible

Parents Reply
  • I had this already written before I realized OP was not after row-by-row selection.  Pasting it here anyway as a pattern for others to use if needed.  I think it looks pretty decent and I only wish it were possible 5 or 6 years ago, lol.

    a!localVariables(
      
      local!gridData: a!forEach(
        enumerate(9),
        a!map(
          id: fv!index,
          name: "Row " & fv!index
        )
      ),
      
      local!selection: tointeger(null()),
      
      a!gridField(
        data: local!gridData,
        selectable: false(),
        
        columns: {
          a!gridColumn(
            helpTooltip: "Fake Selection Column",
            width: "ICON",
            align: "CENTER",
            value: a!richTextDisplayField(
              value: a!richTextItem(
                text: {
                  a!richTextIcon(
                    icon: "circle-o",
                    showWhen: local!selection <> fv!row.id,
                    size: "MEDIUM",
                    link: a!dynamicLink(
                      saveInto: {
                        a!save(
                          local!selection,
                          fv!row.id
                        )
                      }
                    ),
                    linkStyle: "STANDALONE",
                    caption: "Click to Select"
                  ),
                  a!richTextIcon(
                    icon: "dot-circle-o",
                    showWhen: local!selection = fv!row.id,
                    size: "MEDIUM",
                    color: "ACCENT",
                    caption: "Currently Selected"
                  )
                }
              )
            )
          ),
          
          a!gridColumn(
            label: "Id",
            value: fv!row.id
          ),
          a!gridColumn(
            label: "Name",
            value: fv!row.name
          )
        }
      )
    )

Children
No Data