Display editor fields based on row data
Display editor fields based on row data
weawea
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.
This discussion has been closed.
Answers
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