How to handle the Resizing Event on an SfSplitter

In the documentation at https://blazor.syncfusion.com/documentation/splitter/resizing/#refresh-content-on-resizing I see there are OnResizeStartResizing or OnResizeStop events. 

I am however in no way able to actually use this - After some digging around I see these events live in the SplitterEvents and SplitterModel classes, but I have not been able to find a way to either set or access these classes from within an SfSplitter or any of its content/sibling types.

Would it be possible to add an example on how to use this in the documentation? Currently I am trying to add an SfMaps inside an SfSplitter which  does not resize properly. If I call Refresh() on the maps reference it does work. I need to call the Refresh function from an event handler bases on the Resizing (or if poor performance would require it, OnResizeStop) event.

Thanks in advance!

2 Replies

RI richardv April 23, 2020 11:48 AM UTC

Figured it out;

<SfSplitter SeparatorSize="3" > 
    <SplitterPanes>
        <SplitterEvents Resizing="resizing"/>

did the trick. I still recommend an example is added to the documentation page though. But this issue is sorted!


IS Indrajith Srinivasan Syncfusion Team April 24, 2020 10:37 AM UTC

Hi Richard,

Greetings from Syncfusion support,

We have validated your reported query. The SfSplitter property can be accessed using the <SfSplitter /> tags and the events can be defined within the <SplitterEvents> tag. We have also prepared a sample meeting your requirements with maps rendered inside the SfSplitter and Resizing event binded.

Sample: https://www.syncfusion.com/downloads/support/forum/153582/ze/Splitter_with_Maps-99959602

Please let us know if the solution helps,

Regards,
 
Indrajith 


Loader.
Up arrow icon