SizeChangedHandler In Splitter, can it fire before releasing the mouse?

1 Answer 36 Views
Splitter
Peter
Top achievements
Rank 1
Iron
Iron
Peter asked on 06 Oct 2023, 09:09 AM
In my current development project, which is based on Blazor, I extensively use the splitter in conjunction with BlazorSize to manage overflow and reconstruct the scrollbar.

While this setup works effectively, the user experience is not optimal. This is because the scrollbar, computed by BlazorSize, only appears after the mouse button is released. I considered utilizing the SizeChanged event to address this issue, but it too is triggered only after the mouse button is released.

Is there a way to configure the Splitter to trigger these events during the dragging motion, rather than waiting until the mouse button is released?

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 10 Oct 2023, 06:50 AM

Hi Peter,

Mouse events are very inefficient in Blazor and it's not recommended to fire them too often. That's why we follow best practices and I am afraid it's not possible to configure when our events fire.

Regards,
Dimo
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources!
Peter
Top achievements
Rank 1
Iron
Iron
commented on 10 Oct 2023, 08:10 AM

This is what I had already read. I was hoping that there might be a JavaScript hack that could be applied.

But at least it's now clear that the customer simply has to live with it. :-)

However, it would be exciting to extend the splitter so that it behaves similarly to BlazorSize, meaning that you can specify a time interval in which a reaction is triggered.


That might be an idea for an extension of your implementation.

Thanks for the response.

Peter

Tags
Splitter
Asked by
Peter
Top achievements
Rank 1
Iron
Iron
Answers by
Dimo
Telerik team
Share this question
or