Welcome to the Blazor feedback portal. We’re happy you’re here! If you have feedback on how to improve the Blazor, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

Can you please tell me if it's possible to change the primary button to whichever button is selected in the drop down? I need a split button that has different actions/buttons in the drop down that can be used to change the selected/default action of the primary button.

The Telerik SplitButton in their example looks like it does exactly what I want. You can see an example of what I want here:  Telerik Web UI Button Split Button Demo | Telerik UI for ASP.NET AJAX

I have also found that not being able to change the SfSplitButton Content or use the ChildContent properties to dynamically change content is a problem as well. Why do I get the following error message when trying to use a Button object for the primary button? Is it possible to use objects for child content?

There is an ItemSelected event that is a blanket event for all drop down menu items. I need to specify a different event for each item. Can this be done?

<SfSplitButton @ref="splitButtonRef" Content="Default">

    <SplitButtonEvents Clicked="DefaultClicked" ItemSelected="ItemSelected"></SplitButtonEvents>

    <DropDownMenuItems>

        <DropDownMenuItem Text="Default"></DropDownMenuItem>

        <DropDownMenuItem Text="Action 1"></DropDownMenuItem>

        <DropDownMenuItem Text="Action 2"></DropDownMenuItem>

        <DropDownMenuItem Text="Action 3"></DropDownMenuItem>

    </DropDownMenuItems>

</SfSplitButton>


@code {

    private SfSplitButton splitButtonRef;


    private RenderFragment Button1 = @<SprbrkButton>Action 1</SprbrkButton>;

    private RenderFragment Button2 = @<SprbrkButton>Action 2</SprbrkButton>;

    private RenderFragment Button3 = @<SprbrkButton>Action 3</SprbrkButton>;


    protected override void OnInitialized()

    {

        //

    }


    private void DefaultClicked(Syncfusion.Blazor.SplitButtons.ClickEventArgs args)

    {

        //

    }


    private void ItemSelected(Syncfusion.Blazor.SplitButtons.MenuEventArgs args)

    {

        //

    }

}