Splitter Pane SizeChanged event is not called

Hello SF team,

I'm using the latest version 19.3.0.47

I noticed that the SplitterPane SizeChanged event is not being called.
This makes it impossible to assess the latest size value upon a resize event.

For example, in the code below the event is never called.


I attached code to demonstrate this.

Thanks,
Sorin


Attachment: TestItem_45a74802.7z

7 Replies

VJ Vinitha Jeyakumar Syncfusion Team November 1, 2021 12:55 PM UTC

Hi Sorin, 
 
 
Currently, we are validating your reported query. We will update you the further details soon. 
 
Regards, 
Vinitha 



VJ Vinitha Jeyakumar Syncfusion Team November 1, 2021 01:39 PM UTC

Hi Sorin, 
 
 
Greetings from Syncfusion support, 
 
 
We have validated your query “Splitter Pane SizeChanged event is not called 
 
We can able to reproduce the reported issue at our end and we have considered the issue “SizeChanged event of splitter pane is not triggered when resizing the pane” as a bug from our end and the fix for the issue will be included with our upcoming patch release on 16th November 2021. 
 
You can now track the current status of the report, review the proposed resolution timeline, and contact us for any further inquiries through this link: https://www.syncfusion.com/feedback/30000/sizechanged-event-of-splitter-pane-is-not-triggered-when-resizing-the-pane 
 
Regards, 
Vinitha. 
 



VJ Vinitha Jeyakumar Syncfusion Team November 18, 2021 04:34 AM UTC

Hi Sorin, 
 
 
Sorry for the inconvenience caused, 
 
 
We couldn’t include the fix for the issue “SizeChanged event of splitter pane is not triggered when resizing the pane” due to its complexity. We will include the fix for the issue with our upcoming patch release on 30th November 2021. 
 
We appreciate your patience until then. 
 
Regards, 
Vinitha 



VJ Vinitha Jeyakumar Syncfusion Team December 1, 2021 11:03 AM UTC

Hi Sorin,



Sorry for the inconvenience caused,



We couldn’t include the fix for the issue “SizeChanged event of splitter pane is not triggered when resizing the pane” due to its complexity. We will include the fix for the issue with our Volume 4 2021release.


We appreciate your patience until then.


Regards,

Vinitha




VJ Vinitha Jeyakumar Syncfusion Team December 9, 2021 05:36 AM UTC

Hi Sorin,



On further validating the reported query “SizeChanged event of splitter pane is not triggered when resizing the pane”


The `SizeChanged` is an event call back of the property pane `Size`, it will not be triggered when resizing the pane using the splitter separator bar.


For your requirement to get the size of the pane when resize using the splitter separator bar, can be achieved by using the `OnResizeStop` event where the argument `PaneSize` returns both the left and right side pane sizes.


We have prepared a sample for your reference,


Code Snippet:

<SfSplitter Height="25%" Width="100%">

    <SplitterEvents OnResizeStop="@OnResizeStop"></SplitterEvents>

      . . . 

</SfSplitter>

 

@code {

    public string LeftPaneSize { get; set; } = "50%";

    public string RightPaneSize { get; set; } = "50%";

    public void OnResizeStop(ResizingEventArgs args)

    {

        var leftPaneSize = args.PaneSize[0];

        var rightPaneSize = args.PaneSize[1];

    }

}


Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/Card-68226927


Regards,

Vinitha




SO Sorin December 13, 2021 01:19 PM UTC

Thank you Vinitha for the reply and suggestion!

I am able to use the code provided to achieve my project's needs.

Just out of curiosity, will SF eventually fix the  SizeChanged event? 

(it would be nice because then I can just bind my parameter directly to it)



VJ Vinitha Jeyakumar Syncfusion Team December 14, 2021 09:43 AM UTC

Hi Sorin, 
 
 
We want to let you know that the ‘SizeChanged’ event is an event call back of the property pane `Size` and it will set a callback of the bounded value, it will not trigger when resizing the pane using the splitter separator bar and this is the behavior of the SizeChanged event. Please use the “OnResizeStop” event for your requirement as we told in the last update. 
 
Regards, 
Vinitha 


Loader.
Up arrow icon