New-UDbutton Onclick inside a new-udgrid

Product: Universal Dashboard
Version: 2.9.0
Powershell: 7.1.3

hey all,
So I am trying to make a delete button inside a grid.
(to delete the row)
I have this test code:
GridIssue (github.com)

it seems like the OnClick endpoint dont get the data from the grid ? bug or am I doing something wrong?

woohoo I fixed it myself :stuck_out_tongue:
as the docs state automatic variable scoping can be “buggy”. (let me add, in old software :wink: )
so for others use this instead:
https://docs.universaldashboard.io/endpoints/event-handler-endpoints#manual-variable-scoping

1 Like