Completed
Last Updated: 28 Mar 2022 15:27 by ADMIN

I have a page with ButtonGroup. When I run the application, navigate to that page, refresh it using F5 I see the following exceptions:

System.AggregateException: Exceptions were encountered while disposing components. (Cannot process pending renders after the renderer has been disposed.
Object name: 'Renderer'.) (Cannot process pending renders after the renderer has been disposed.
Object name: 'Renderer'.)
 ---> System.ObjectDisposedException: Cannot process pending renders after the renderer has been disposed.
Object name: 'Renderer'.
   at Microsoft.AspNetCore.Components.RenderTree.Renderer.ProcessPendingRender()
   at Microsoft.AspNetCore.Components.Server.Circuits.RemoteRenderer.ProcessPendingRender()
   at Microsoft.AspNetCore.Components.RenderTree.Renderer.AddToRenderQueue(Int32 componentId, RenderFragment renderFragment)
   at Microsoft.AspNetCore.Components.ComponentBase.StateHasChanged()
   at Telerik.Blazor.Components.Common.BaseComponent.StateHasChanged()
   at Telerik.Blazor.Components.TelerikButtonGroup.Telerik.Blazor.Components.ButtonGroup.IButtonContainer.RemoveButton(ButtonGroupButtonBase button)
   at Telerik.Blazor.Components.ButtonGroup.ButtonGroupButtonBase.Dispose()
   at Microsoft.AspNetCore.Components.Rendering.ComponentState.Dispose()
   at Microsoft.AspNetCore.Components.RenderTree.Renderer.Dispose(Boolean disposing)
   --- End of inner exception stack trace ---
 ---> (Inner Exception #1) System.ObjectDisposedException: Cannot process pending renders after the renderer has been disposed.
Object name: 'Renderer'.
   at Microsoft.AspNetCore.Components.RenderTree.Renderer.ProcessPendingRender()
   at Microsoft.AspNetCore.Components.Server.Circuits.RemoteRenderer.ProcessPendingRender()
   at Microsoft.AspNetCore.Components.RenderTree.Renderer.AddToRenderQueue(Int32 componentId, RenderFragment renderFragment)
   at Microsoft.AspNetCore.Components.ComponentBase.StateHasChanged()
   at Telerik.Blazor.Components.Common.BaseComponent.StateHasChanged()
   at Telerik.Blazor.Components.TelerikButtonGroup.Telerik.Blazor.Components.ButtonGroup.IButtonContainer.RemoveButton(ButtonGroupButtonBase button)
   at Telerik.Blazor.Components.ButtonGroup.ButtonGroupButtonBase.Dispose()
   at Microsoft.AspNetCore.Components.Rendering.ComponentState.Dispose()
   at Microsoft.AspNetCore.Components.RenderTree.Renderer.Dispose(Boolean disposing)

Declined
Last Updated: 29 Mar 2021 08:10 by ADMIN
Created by: Marc Simkin
Comments: 1
Category: ButtonGroup
Type: Feature Request
0

Pretty basic, the menu allows for a separator, which is a line.

It would be nice for the button group to allow for a separator that is just white space/extra padding between specific buttons, similar to how the buttons are rendered on this editor.

Using multiple button groups will not resolve the issue, when only one button at a time from is allowed to be clicked.

For example, the below is my button group:

Add  Include Exclude Insert Move Undo

I would like to have more space between specific pairs of buttons

The above buttons will perform specific operations on a set of data.  They are mutually exclusive, in that only one operation can be executed at a time.  It would be nice to have some more space between specific pairs of buttons.  For example:

Add  Include Exclude   Insert Move  Undo
Using a toggle button is a possibility, however the Undo operation can revert any of the previous operations.