universal-dashboard
universal-dashboard copied to clipboard
UDCheckbox Doesn't Persist Checked State Between Griddle Pages
trafficstars
When UDCheckboxes are placed in a UDGrid, they don't persist their state once the user changes to the next page of the grid. Below is an example of the bug and the code that generated said example.
Also, here is my original forum post: https://forums.universaldashboard.io/t/persist-checkbox-state-when-inside-udgrid/870
GIF Video: https://aws1.discourse-cdn.com/standard11/uploads/universaldashboard/original/1X/3e8ff9b72ce80630eda100cfc80dd1e644435b3d.gif
Get-UDDashboard | Stop-UDDashboard
$Page = New-UDPage -Name 'Test' -Content {
New-UDGrid -Headers @(' ','Id','Name') -Properties @(' ','Id','Name') -Endpoint {
Get-Process | Select-Object -Property @{
Name=' '
Expression={
New-UDCheckbox
}
},Id,Name | Out-UDGridData
}
}
$Dashboard = New-UDDashboard -Title "Grid Test" -Pages $Page
Start-UDDashboard -Dashboard $Dashboard -Port 9090
This issue has been mentioned on Ironman Software Forums. There might be relevant details there:
https://forums.universaldashboard.io/t/out-udgriddata-with-selectable-rows/1126/38