Hi, I’m using New-UDTable and I’m trying to use both -LoadData and -ShowFilter on the column, I can see that it works, but only for a split second, after that it auto resets and removes the inserted text from the filter. It feels to me that it’s trying to use both clientside and serverside filtering at the same time. One observation for example is that it does work once the total results are smaller than the pagesize set. In my case though, I’m working with 10000+ records and that just doesn’t perform when sending all that data to the client in one go.
I tested these scenario’s, with both Edge (chromium based one) and Chrome:
Use a dataset of 10000 items, pagesize of 25, filters don’t work.
Use a dataset of 50 items, pagesize of 25, filters don’t work.
Use a dataset of 25 items, pagesize of 25, filters work correctly in this scenario!
Edit, one more noteworthy item, the filter always shows “search 26 records”, while the total number of results is higher and is correctly passed (I do see the correct value in the bottom of the table, so -TotalCount is getting the right value, but it’s not processed correctly in the filter it seems.
server-side processing depends on you to do the filtering, totalCount on server-side processing is only used for calc the number of pages the pagination will have, but that only for the UI view, it does not actually populate all the pages the pagination show you when doing server-side processing the table will query the server for the current page, and it expects to get only the amount of data that the PageSize is,
if you wanna send all your data in one go to the table don’t use server-side, if you send all you data in one go to the table, the table will handle all the filtering and pagination for you.
I did look at the blog post before I posted this issue, the problem here is that it doesn’t work as expected. I think the way the filter is implemented in the code I pasted above, should be all that is needed to implement the server-side processing?
The problem is that, after implementing this, I can see that the results are returned, but right after that (within the same second) the search is reset (so the text disappears from the filter). This feels like a bug in UD.
can you post me some sample data to work with?
do you use the global filter or column custom filter,
if you can screen record this it will be appreciated
How it behaves: https://youtu.be/WcI-aK-QHJ4 (as can be seen in the video, I try to filter on something that start with 10., that only starts to work once I type it very slowly, please note I’m not pressing backspace myself here (or deleting the inserted text in another way), the text in the filter is removed by UD.
Thanks @AlonGvili, this one is quite a blocker for the (proper) use of UD for my use case, I hope it can be resolved quickly. Am I correct in assuming this is a bug in UD?
Today I updated to 1.5.9, as I noticed it was released. Unfortunately, now my code doesn’t execute at all:
The dashboard shows:
Stacktrace:
Stack Trace: at New-UDTable<End>, C:\ProgramData\PowerShellUniversal\Dashboard\Frameworks\UniversalDashboard\3.2.6\UniversalDashboard.MaterialUI.psm1: line 4100
at <ScriptBlock>, <No file>: line 51
at New-UDErrorBoundary, C:\ProgramData\PowerShellUniversal\Dashboard\Frameworks\UniversalDashboard\3.2.6\UniversalDashboard.MaterialUI.psm1: line 1566
at New-UDPaper<End>, C:\ProgramData\PowerShellUniversal\Dashboard\Frameworks\UniversalDashboard\3.2.6\UniversalDashboard.MaterialUI.psm1: line 2944
at <ScriptBlock>, <No file>: line 12
Reverting back to 3.2.5 resolves that issue (the page load properly again) but of course has me ending up in the issue described above.
I’m at PSU 1.5.10 now and still facing issues using UD 3.2.7., using the same test code as above, filtering works properly until there is only 1 result left. When only one result needs to be displayed, UD displays it for a second and then the result disappears from the output.
Another issue is that, in the search bar UD displays “search 6 records”, but because the search is serverside what actually happens is that all 775 results are searched, so this message in the searchbar is misleading.
Bumping this issue, mind helping out @AlonGvili. Just to be sure the issue is clear I’ve also created a video of the current issue I’m facing. Also I upgraded to 1.5.12 / UD 3.3.1, same issue there. This is the video: https://youtu.be/u6rK2uHau9o