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
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
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
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)