Can we Add color in Grid Field row data?

Hello All,

Can i able to add color to Grid field row data 



Thanks,

Shubham

  Discussion posts and replies are publicly visible

Parents
  • Hi Shubham,

    You can try this 

    a!forEach(
    items: {1,2,3},
    expression: {
    a!cardLayout(
    style:if(
    fv!index=2,
    "WARN",
    "STANDARD"
    ),
    contents: {
    a!gridField(
    shadeAlternateRows:false(),
    spacing:"DENSE",
    borderStyle:"LIGHT",
    totalCount: 1,
    columns: {
    a!gridTextColumn(

    field: "c10",
    data: "Test1"
    ),
    a!gridTextColumn(

    field: "c16",
    data:"Test2"
    ),
    a!gridTextColumn(

    field: "c12",
    data: "Test3"
    ),

    },
    value: a!pagingInfo(1,-1)
    )
    }
    )

    })

Reply
  • Hi Shubham,

    You can try this 

    a!forEach(
    items: {1,2,3},
    expression: {
    a!cardLayout(
    style:if(
    fv!index=2,
    "WARN",
    "STANDARD"
    ),
    contents: {
    a!gridField(
    shadeAlternateRows:false(),
    spacing:"DENSE",
    borderStyle:"LIGHT",
    totalCount: 1,
    columns: {
    a!gridTextColumn(

    field: "c10",
    data: "Test1"
    ),
    a!gridTextColumn(

    field: "c16",
    data:"Test2"
    ),
    a!gridTextColumn(

    field: "c12",
    data: "Test3"
    ),

    },
    value: a!pagingInfo(1,-1)
    )
    }
    )

    })

Children
No Data