Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not every element is shown in a select, nested in a grid. #1037

Closed
gitbute opened this issue Aug 22, 2019 · 0 comments
Closed

Not every element is shown in a select, nested in a grid. #1037

gitbute opened this issue Aug 22, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@gitbute
Copy link

gitbute commented Aug 22, 2019

Hi

When you put a select on each row in a UDGrid, only the last ~14 to 17 of all the UDSelectOptions are shown. You can generate the UDSelectOptions with a foreach or hardcoded, it doesnt matter.

Expected behaviour would be to show all the elements, like the UDSelect normally does.

Example:

New-UDGrid -Title "Databases" -NoPaging  -Endpoint {
    $data = $someData
    foreach ($row in $data) {
        $row | Add-Member -MemberType 'NoteProperty' -Name 'someName' -Value ( New-UDSelect -Option {
                foreach ($DB in $Session:DBList) {
                    New-UDSelectOption -Name $DB  -Value $DB
                }
            })
    }
    $data | Out-UDGridData 
}

$Session:DBList holds about 150 elemnts, only the last 14 get shown.

Best regards
gitbute

@adamdriscoll adamdriscoll added the bug Something isn't working label Aug 23, 2019
adamdriscoll added a commit that referenced this issue Oct 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants