SfSplitButton's native onClick event not triggered

Hello!
Need to handle click event from primary SfSplitButton and custom PopupContent.
Native event onClick not triggered, SplitButtonEvents cant be set if it contains PopupContent.
See attachment.

You should at least check that your own examples don't work.

3 Replies 1 reply marked as answer

MK Mohan Kumar Ramasamy Syncfusion Team August 24, 2020 02:18 PM UTC

Hi Ivan, 
 
We have checked your reported query, The Split Button events can be set as ChildContent. Please refer the below code snippets. 
 
<SfSplitButton Content="Profile"> 
    <PopupContent> 
        <span>Some Components</span> 
    </PopupContent> 
    <ChildContent> 
        <SplitButtonEvents Clicked="Click" ItemSelected="Selected"></SplitButtonEvents> 
    </ChildContent> 
 
</SfSplitButton> 
 
 
@code { 
    private void Selected(Syncfusion.Blazor.SplitButtons.MenuEventArgs args) 
    { 
 
    } 
 
    private void Click(Syncfusion.Blazor.SplitButtons.ClickEventArgs args) 
    { 
 
    } 
} 
 
For your reference, we have changed your sample, please refer the link. 
 
 
Please let us know, if you need any further assistance. 
 
Regards, 
Mohankumar R 
 


Marked as answer

IV Ivan August 24, 2020 02:37 PM UTC

Many thanks!!


MK Mohan Kumar Ramasamy Syncfusion Team August 25, 2020 07:56 AM UTC

Hi Ivan,   
  
Thanks for the update.  
 
We are happy to hear that your requirement has been fulfilled. Please feel free to contact us if you need any further assistance on this. 
 
Regards, 
Mohankumar R 


Loader.
Up arrow icon