Hello everyone,
I'm going crazy trying to figure out how to fix this issue I'm having with a Table in Ignition Perspective.
Basically, when a row is selected (even though the property
props.selectedRow: null
)
doesn't allow it to be selected further, you have to change the row, go back, and then reselect it.
I can't figure out how to clear this selection. When I first enter the view, no row is selected, and I’d like to understand which property would allow me to reset the situation to that initial state.
The trick is to set enableRowSelection
to False
, and have a change script on selectedRow
looking for None
, and then changing enableRowSelection
back to True
. The code must not set enableRowSelection
to False
when selectedRow
is already None
.
Basically, row selection can only be performed reliably by the client browser. When you disable row selection, that state gets sent to the browser, and it clears the selection. When you see that change back in the gateway, you can re-enable row selection.
2 Likes
Thanks @pturmel, I try this!
Have a nice day