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

Stretched grid when result is null #244

Open
OnlyRinaldo opened this issue Jan 3, 2018 · 0 comments
Open

Stretched grid when result is null #244

OnlyRinaldo opened this issue Jan 3, 2018 · 0 comments

Comments

@OnlyRinaldo
Copy link

Hello Adam,

When I make a dashboard with a grid and the requested data equals null the grid will generate a table with a exclamation mark the table is also stretched. Example code:

New-UDGrid -DefaultSortColumn 'Transitiontime' -Title "Server and connection failed issues with ticket" -Headers @("Customer", "Device", "Device Class", "Service", "Ticket", "Transitiontime") -Properties @("CustomerName", "DeviceName", "DeviceClass", "ServiceName", "PSATicketDetails", "TransitionTime") -Endpoint { ((Get-Content -Path $FileActivite | convertfrom-json) | Select-Object CustomerName,DeviceName,DeviceClass,ServiceName,PSATicketDetails,TransitionTime | Where-Object {(($_.PSATicketDetails) -and ($_.DeviceClass -notmatch 'Workstation' -and $_.DeviceClass -notmatch 'Laptop') -and ($_.ServiceName -ne 'System Warranty'))} | Sort-Object -Property TransitionTime) | Out-UDGridData

Result when command is executed with shell:

`Result:
{
"draw": null,
"recordsTotal": null,
"data": [

     ],

"recordsFiltered": 0
}`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants