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