In this tool I’m developing I am using an ETO GriedView to display data.
The tool uses a form (ETO.Forms.Dialog) , modeless by setting it to Rhino.UI.RhinoEtoApp.MainWindow if that matters.
The table work well, is sortable, but feels very slow, with just a couple of columns and about 200 rows. I compared the same tool on a macbook (i9) and it’s much, much faster there. Is there anything I need to be aware of to get the table to behave fluently on Windows as well?
If I switch from just a few rows to about 200 it takes more than 2 seconds to refresh. If needed I can share the script in pm.
hi @clement thanks for having a look. I disabled it but it makes no difference. In fact I measured the execution time of the code that runs to refresh the list and it takes <0.1 seconds but then it still takes a while for the list to refresh. Here’s a screen recording showing the behavior:
@kitjmv thanks but I don’t see in that thread a pointer for a solution?
I might be able to truncate the data and speed it up this way. But still 200 items isn’t that many.
@curtisw I noticed while testing on the Mac that the scrollbars don’t work well, I had to scale the window to make them show up, and after clicking outside, they disappear and only reactivate once I scale the window again.
Yes me neither except that there are some side effects with using WPF in ETO.
In my case if a row was selected the scrolling was horrible.
In your case.
When starting the application (if the “All” option is selected by default) does the display appear quickly ?
If so, your issue is resolved like mine, find the setting (or settingS) to “reset” before making any changes to the list.
That’s a huge difference, thanks. What I noticed though is that with the BeginScrollable the scrolling is more fluent than without, do you see that too?
@clement but there’s a catch: if I disable it in my tool, the grid will not be scrollable, since I only want the grid to be scrollable and the rest to stay in place.
Yes, same here… still poking around. EndScrollable() is missing btw. but that’s not causing the slowdown.
Yeah, this is of course different in this example where the grid fills the whole dialog, it automatically adds the scrollbars without the Scrollable. I’ve first tried to make only a forms.Scrollable() and then set the grid to it’s Content, then add it to the layout, but this also causes the slowdown…