Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #101439
    chips
    Member

    Hi,
    is possible use the condition in conditionalformattingĀ referencing another column?
    eg:

    conditionalFormatting: [
    {
    column: ‘quantity’,
    condition: ‘greaterThan total‘ , ——??
    firstValue: 8,
    text: ‘#FFFFFF’,
    highlight: ‘#45D29A’
    }
    ]

    columns[
    { label: ‘Quantity’, dataField: ‘quantity’, align: ‘right’, cellsAlign: ‘right’, },
    { label: ‘Total’, dataField: ‘total’, align: ‘right’, cellsAlign: ‘right’, cellsFormat: ‘c2’ }
    ]
     

    #101440
    yavordashew
    Member

    Hi chips,
    If you wannt to achieve such functionality I would suggest you to take a look at this demo:
    https://www.htmlelements.com/demos/grid/column-dynamic-template/
    It demonstrates how to display different column cell styles with a conditional referencing another column.
    Please, do not hesitate to contact us if you have any additional questions.
    Best regards,
    Yavor Dashev
    Smart UI Team
    https://www.htmlelements.com/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.