Is it possible to user richtextfield control inside gridlayout header?

Hello All,

 

I have a requirement to display grid header cell in some specific format, So just wanted to know if we can use richtextfield control inside gridlayout field or not? If yes, Then how and if no then do we have any alternatives for it?

  Discussion posts and replies are publicly visible

Parents
  • In the same code which  has provided, we can configure the borderStyle parameter of the gridLayout component to LIGHT. The header cells will no longer be visible, and also the table will have a border only between each row.

    a!gridLayout(
      borderStyle: "LIGHT",
      headerCells: {
        a!gridLayoutHeaderCell(
          label: ""
        ),
        a!gridLayoutHeaderCell(
          label: ""
        )
      },
      rows: {
        a!gridRowLayout(
          contents: {
            a!richTextDisplayField(
              value: a!richTextItem(
                text: "Name",
                style: "STRONG"
              )
            ),
            a!richTextDisplayField(
              value: a!richTextItem(
                text: "Address",
                style: "STRONG"
              )
            )
          }
        ),
        a!gridRowLayout(
          contents: {
            a!textField(
              value: "Test Name"
            ),
            a!textField(
              value: "Test Address"
            )
          }
        )
      }
    )

Reply
  • In the same code which  has provided, we can configure the borderStyle parameter of the gridLayout component to LIGHT. The header cells will no longer be visible, and also the table will have a border only between each row.

    a!gridLayout(
      borderStyle: "LIGHT",
      headerCells: {
        a!gridLayoutHeaderCell(
          label: ""
        ),
        a!gridLayoutHeaderCell(
          label: ""
        )
      },
      rows: {
        a!gridRowLayout(
          contents: {
            a!richTextDisplayField(
              value: a!richTextItem(
                text: "Name",
                style: "STRONG"
              )
            ),
            a!richTextDisplayField(
              value: a!richTextItem(
                text: "Address",
                style: "STRONG"
              )
            )
          }
        ),
        a!gridRowLayout(
          contents: {
            a!textField(
              value: "Test Name"
            ),
            a!textField(
              value: "Test Address"
            )
          }
        )
      }
    )

Children
No Data