我有ButtonGroup的页面。当我运行应用程序时,导航到该页面,使用F5刷新它,我看到以下例外:
系统。AggregateException:遇到异常而处理组件。在渲染器被处理后,无法处理挂起的渲染。对象名称:渲染器的在渲染器被处理后,无法处理挂起的渲染。对象名称:渲染器的.) ->系统。在渲染器被处理后,不能处理挂起的渲染。对象名称:渲染器的。在Microsoft.AspNetCore.Components.Server.Circuits.RemoteRenderer.ProcessPendingRender()在Telerik.Blazor.Components.Common.BaseComponent.StateHasChanged() at Telerik.Blazor.Components.TelerikButtonGroup.Telerik.Blazor.Components.ButtonGroup.IButtonContainer. AddToRenderQueue(Int32 componentId, RenderFragment RenderFragment)RemoveButton(ButtonGroupButtonBase按钮)在Telerik.Blazor.Components.ButtonGroup.ButtonGroupButtonBase.Dispose()在microsoft.aspnetcore . components . render.componentstate . dispose()在Microsoft.AspNetCore.Components.RenderTree.Renderer。Dispose(Boolean Dispose)——内部异常堆栈跟踪结束--- --->(内部异常# 1)系统。在渲染器被处理后,不能处理挂起的渲染。对象名称:渲染器的。在Microsoft.AspNetCore.Components.Server.Circuits.RemoteRenderer.ProcessPendingRender()在Telerik.Blazor.Components.Common.BaseComponent.StateHasChanged() at Telerik.Blazor.Components.TelerikButtonGroup.Telerik.Blazor.Components.ButtonGroup.IButtonContainer. AddToRenderQueue(Int32 componentId, RenderFragment RenderFragment)RemoveButton(ButtonGroupButtonBase按钮)在Telerik.Blazor.Components.ButtonGroup.ButtonGroupButtonBase.Dispose()在microsoft.aspnetcore . components . render.componentstate . dispose()在Microsoft.AspNetCore.Components.RenderTree.Renderer。处理(布尔处理)
非常基本,菜单允许分隔符,也就是一条线。
如果按钮组允许分隔符只是特定按钮之间的空白/额外填充,这将是很好的,类似于在本编辑器上呈现按钮的方式。
当一次只允许单击一个按钮时,使用多个按钮组将无法解决此问题。
例如,下面是我的按钮组:
添加包括排除插入移动撤消
我希望在特定的按钮对之间有更多的空间
上述按钮将对一组数据执行特定操作。它们是互斥的,因为一次只能执行一个操作。如果在特定的按钮对之间有更多的空间就好了。例如:
添加包括排除插入移动撤消