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!>
Thanks for joining our community and helping improve Syncfusion products!
Hi,
I am trying to implement dynamic cntext menu items that will vary depending upon the selected column. The particular use case that I'm trying to achieve is to Freeze / Unfreeze columns.
I have attached a sample application and video showing the behavior observed. The following code snippets show the key components.
With reference to the video, when I try and right click on a column heading, I seem to get an oscilating list of context menu items.
Can you please let me know if I have implemented something incorrectly, or if there is a bug?
<SfGrid DataSource="@ObservableData" AllowPaging="true" ContextMenuItems="@_contextMenuItems">
<GridEvents TValue="ObservableDatas" ContextMenuOpen="OnContextMenuOpen" />
private object? _contextMenuItems = new List