Product: PowerShell Universal
Version: 5.5.4
Hello,
I migrated from an old version of PSU (from 4.2.18 > 5.5.4), I have an UDDataGrid with custom Render for one Column that uses a basic HTML list (< ul >) that worked in previous version but not in new one;
Here’s an example code :
New-UDDataGrid -LoadRows {
$Data = @(
@{ Name = 'Adam'; Number = Get-Random}
@{ Name = 'Tom'; Number = Get-Random}
@{ Name = 'Sarah'; Number = Get-Random}
)
$Data | Out-UDDataGridData -Context $EventData -TotalRows $Rows.Length
} -Columns @(
New-UDDataGridColumn -Field name
New-UDDataGridColumn -Field number
New-UDDataGridColumn -Field test -Render {
New-UDHtml -Markup "<ul><li>1</li><li>2</li></ul>"
}
New-UDDataGridColumn -Field test2 -Render {
New-UDElement -Tag 'ul' -Content {
New-UDElement -Tag 'li' -Content { "1" }
New-UDElement -Tag 'li' -Content { "2" }
}
}
) -AutoHeight $true
When I check the source code of the page, the information is there, but it seems to be hidden by the following line :
Do you have any idea what’s going wrong here?
Thanks !