Add and remove menu items

Hi,

I have a radial menu in my app and I would like it to have more or less sub-items depending on the state of the app. So, I might start with only the center button but when the user presses a button some menu items are added to it. Something like:

My menu:
<xForms:SfRadialMenu Grid.Row="1" x:Name="RadialMenuInfo" Style="{StaticResource RadialMenuStyle}"
                                 CenterButtonText="{x:Static local:FontAwesomeFont.Plus}"
                                 IsVisible="True"/>

And some sample code (adapted from your sample code):

private void Button_clicked(object sender, EventArgs e)
        {
            var layer = new string[] { "\uE701", "\uE702", "\uEA8F", "\uE706", "\uEBAA", "\uE7E8" };
            var mainMenuItems = new SfRadialMenuItem();
            mainMenuItems.IconFontSize = 20;
            mainMenuItems.FontIconText = layer[0];
            mainMenuItems.ItemHeight = 30;
            mainMenuItems.ItemWidth = 40;
            mainMenuItems.TextColor = Color.White;
            //mainMenuItems.ItemTapped += Handle_ItemTapped;
            mainMenuItems.IconFontFamily = "Segoe MDL2 Assets.ttf";
            RadialMenuItem.Items.Add(mainMenuItems);
        }

As I step into this code I can see the number of RadialMenuItem.Items increase but, on screen, the control stays unchanged without any new items. Is this scenario supported? Am I missing some step?

Thanks,
Jose

6 Replies

RB Rabhia Beham Kathar Mideenar Syncfusion Team April 25, 2018 06:32 AM UTC

Hi Jose,

Thank you for contacting Syncfusion Support.

We have checked the reported issue and we could able to reproduce the reported issue in SfRadialMenu Control.We have logged the defect report for the same. And the fix will be available in Volume 2 Release which is expected to be rolled out by the end of May 2018.

Please let us know if you have any concern.

Regards,
Rabhia Beham K.



RB Rabhia Beham Kathar Mideenar Syncfusion Team April 25, 2018 06:32 AM UTC

Hi Jose,

Thank you for contacting Syncfusion Support.

We have checked the reported issue and we could able to reproduce the reported issue in SfRadialMenu Control.We have logged the defect report for the same. And the fix will be available in Volume 2 Release which is expected to be rolled out by the end of May 2018.

Please let us know if you have any concern.

Regards,
Rabhia Beham K.



RB Rabhia Beham Kathar Mideenar Syncfusion Team April 25, 2018 06:32 AM UTC

Hi Jose,

Thank you for contacting Syncfusion Support.

We have checked the reported issue and we could able to reproduce the reported issue in SfRadialMenu Control.We have logged the defect report for the same. And the fix will be available in Volume 2 Release which is expected to be rolled out by the end of May 2018.

Please let us know if you have any concern.

Regards,
Rabhia Beham K.



JO Jose April 25, 2018 08:08 AM UTC

Hi Rabhia,

Thank you. It would be nice if the addition/removal of items also supported data binding. I believe that part is also not working.

Jose


RB Rabhia Beham Kathar Mideenar Syncfusion Team April 27, 2018 12:39 AM UTC

Hi Jose,

Thanks for your update.

Query : Addition/removal of items also supported data binding.

We have considered your requirement as a feature request and planned to implement in upcoming release. This feature will be available in our Volume 3 release which will be in the end of August 2018.

Please let us know if you have any concern.

Regards,
Rabhia Beham K.



PA Paul Anderson S Syncfusion Team September 19, 2018 09:14 AM UTC

Hi Jose,

Sorry for the inconvenience caused.

Due to some stability and priority features we have not implemented the Addition/Removal of items feature in our Volume 3 2018 release. We will include this in our Volume 3 SP1 release which will be in the end of October 2018.

Regards,
Paul Anderson

Loader.
Up arrow icon