Hi,
When using -LoadData for UDTable the Search box won’t work.
Wondering if I’m doing something wrong or is search broken?
$SearchText = New-UDTableTextOption -Search "$tl:Search"
New-UDTable -Id "tableGroupMembership" -Columns $Columns -LoadData {
$TotalCount = $Data.Count
if (-not [string]::IsNullOrEmpty($EventData.OrderBy)) {
$Descending = if ($EventData.OrderDirection -ne 'asc') { $false } else { $true }
if ($Descending -eq $true) {
$Data = $Data | Sort-Object -Property "$($EventData.orderBy | Out-String)" -Descending
}
else {
$Data = $Data | Sort-Object -Property "$($EventData.orderBy | Out-String)"
}
}
$Data = $Data | Select-Object -First $EventData.PageSize -Skip ($EventData.Page * $EventData.PageSize)
$Data | Out-UDTableData -Page $EventData.Page -TotalCount $TotalCount -Properties $EventData.Properties
} -PaginationLocation top -TextOption $SearchText -ShowSearch -ShowPagination -Dense -PageSize 8 -ShowSort -RemoveCard -DisableSortRemove -Size small -DefaultSortDirection ascending
I have opened a GitHub issue for it also table when using -LoadData search box won't work. · Issue #2723 · ironmansoftware/issues · GitHub