Display editor fields based on row data

Display editor fields based on row data

weaweaweawea Posts: 1Questions: 1Answers: 0

I want to display certain fields basesd on row data. For example if a row has the value on the column state 'completed', a field of type select should be shown, but if another row has the column state 'pending' the field should not be shown.

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,598

    Hi @weawea ,

    columns.render can be used to change the value of a column based on any logic, which may include the state of other cells in that row, or anything else.

    One caveat though is that the table must be of fixed width, with the same column count in all rows. So to do this, you would need to have a fixed set of one or more columns always present that you would use for this purpose.

    Hope that helps,

    Cheers,

    Colin

This discussion has been closed.