GridField and GridLayout sail components either enable/disable selection on all the rows in a grid. However I have a requirement where in I need to conditionally enable/disable selection on certain records in a grid. Is there anyway to achieve this.
OriginalPostID-216329
Discussion posts and replies are publicly visible
Hi , i too have this requirement in gridField , is there any to achieve this ??
Not until 19.2
Hi Mike, please how can we conditionally make a grid row selectable/unselectable in 19.2?
The revised a!gridField component has a new parameter, disableRowSelectionWhen, which evaluates for each fv!row item. So for example, you could do this to disable selection of any rows where the CDT "id" property is null:
disableRowSelectionWhen: isnull( fv!row.id )