Am I going crazy or is this only working for normal Panel cards currently (2023.1.4)? Trying to expand a grid panel and the property-set is setting the flag to true, but not actually expanding. Tried with a normal panel card and that expanded without issue. Tried setting expanded to false when it was open and same thing where it sets it, but doesn’t do anything.
So, I was trying to do this as hack to fix virtual scrolling issues. My issue was that if I loaded data, then scrolled down a ways, then changed the parameters and reloaded the dataview, the scroll doesn’t reset. If the new data has fewer rows, it can look like no data was loaded. The user must scroll around a bit to realize that data was actually loaded.
I found that collapsing the grid panel and expanding it forced the scroll to reset, so I tried to do this programmatically with property-set and the expanded property. As described, this doesn’t work.
For my scrolling issue specifically, my super hacky way to a better UX is by using property-set to execute some simple Javascript to scroll the table div to the top. It seems to work great! This could probably be made more robust by searching the grid containers children for a div CSS overflow set.