How can I get the selected column when clicking the ColumnMenu

I'm using the ColumnMenuItems feature with a custom menu item, to rename the column.
But I can't find a way to know which column was selected.

Any help will be appreciated


   public ColumnMenuItemModel[] MenuItems = new ColumnMenuItemModel[] { new ColumnMenuItemModel()
    {
        Id="mnuRename",
        Text = "Rename"
    } };


<GridEvents  ColumnMenuItemClicked="ColumnMenuItemClickedHandler"  TValue="Order"></GridEvents>


    public void ColumnMenuItemClickedHandler(Syncfusion.EJ2.Blazor.Navigations.MenuEventArgs args)
    {
        if (args.Item.Id == "mnuRename")
        {
           // IsColumnRenameVisible = true;
        }
    }




3 Replies

RS Renjith Singh Rajendran Syncfusion Team March 18, 2020 01:23 PM UTC

Hi Tomer, 

Thanks for contacting Syncfusion support. 

We have already logged a usability improvement task for this requirement “Support to add the current column information in the ColumnMenuItemClicked Event argument”. This feature improvement will be available in our upcoming bi-weekly release which is scheduled to be rolled out in the first week of April 2020

You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link.  

Please get back to us if you need further assistance. 

Regards, 
Renjith Singh Rajendran. 



TO Tomer March 18, 2020 02:04 PM UTC

Sounds good!
Thanks


RS Renjith Singh Rajendran Syncfusion Team March 19, 2020 04:55 AM UTC

Hi Tomer, 

Thanks for your update. 

Once the release is rolled out, you can fetch the corresponding column information from the arguments of the ColumnMenuItemClicked event. 

Until then we appreciate your patience. 

Regards, 
Renjith Singh Rajendran. 


Loader.
Up arrow icon