universal-dashboard icon indicating copy to clipboard operation
universal-dashboard copied to clipboard

UDCheckbox Doesn't Persist Checked State Between Griddle Pages

Open jmknight2 opened this issue 6 years ago • 1 comments
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

jmknight2 avatar Jun 25 '19 16:06 jmknight2

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

adamdriscoll avatar Jun 12 '20 14:06 adamdriscoll