Why there is no Id property for DropDownMenuItem in DropDownButton

Before version 18.2.44 items in DropDown button has property ID. This was useful for handling click event. We was using DropDown Button Item ID property for handling action in code behind.

-SfDropDownButton IconCss="fas fa-filter" Content="Postavke"-
    -DropDownButtonEvents ItemSelected="PostavkeKliknute"--/DropDownButtonEvents-
        -DropDownButtonItems-
             -DropDownButtonItem Id="1" Text="Odaberi kolone za prikaz"--/DropDownButtonItem-
             -DropDownButtonItem Id="2" Text="Raširi kolone"--/DropDownButtonItem-
        -/DropDownButtonItems-
-/SfDropDownButton-
@code {
private async void  ostavkeKliknute(Syncfusion.Blazor.SplitButtons.MenuEventArgs args)
        {
            if (args.Item.Id == "1")
            {
                await this.gridSmjena.OpenColumnChooser(200, 50);

            }
            else if (args.Item.Id == "2")
            {
                await this.gridSmjena.AutoFitColumns();
            }
        }
}

Now DropDownMenuItem does not have Id.
We can store action info in URL but then menuitem is rendered as rel='nofollow' href and css getting messy about it.
Is there chance to we get back id property in DropDownMenuItem 

3 Replies 1 reply marked as answer

DA Davy July 10, 2020 08:34 AM UTC

I agree with this request. Now we have to use the Text property to see which item was clicked, but this is completely not usable when using localizations.
We need to have some kind of identifier to know which item was clicked.


MK Mohan Kumar Ramasamy Syncfusion Team July 10, 2020 03:22 PM UTC

Hi Davy, 
 
Sorry for the inconvenience caused.  We have checked your reported issue, we have removed Id property of DropDownMenuItem in this release. We have logged a issue report for this and we will include this fix in our upcoming patch release which will be scheduled on 15th July 2020. 
 
Regards, 
Mohankumar R 



MK Mohan Kumar Ramasamy Syncfusion Team July 14, 2020 02:29 PM UTC

Hi Davy/ Admir, 
 
Thank you for the patience. 
 
We are glad to announce that our weekly patch release (18.2.0.45) is rolled out. We have included the fix for the reported issue(we have provided Id property of DropDownMenuItem) in this release. So, we suggest you upgrade our Syncfusion packages to our latest version to resolve this issue in your end. 
 
Please let us know if you need further assistance on this. 
 
Regards, 
Mohankumar R 


Marked as answer
Loader.
Up arrow icon