We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Dynamicly adding and removing items from RadialMenu

Thread ID:

Created:

Updated:

Platform:

Replies:

150508 Jan 9,2020 10:15 AM UTC Feb 4,2020 08:40 AM UTC Xamarin.Android 3
loading
Tags: SfRadialMenu
Pawel Mucha
Asked On January 9, 2020 10:15 AM UTC

Hello, I have a problem with dynamicly adding and removing items from RadialMenu, i would like to remove "connect" item with "disconnect". I was trying to call radialMenu.Invalidate after change but without success.

I was trying something like this (the item that i would like to switch is under ):

 if (args.IsConnected)
 {

      _radialMenu.Items[1] = _disconnectItem;

}
else

{
       _radialMenu.Items[1] = _connectItem;
}

_radialMenu.Invalidate();

i was trying like this:

if (args.IsConnected)
{

     _radialMenu.Items.Remove(_connectItem);

     _radialMenu.Items.Add(_disconnectItem);

}

else

{

       _radialMenu.Items.Remove(_disconnectItem);

       _radialMenu.Items.Add(_connectItem);
}
_radialMenu.Invalidate();  

the only solution that it was working was when menu was opened, so i ended up with this:

_radialMenu.Show();
 if (args.IsConnected)
 {

      _radialMenu.Items[1] = _disconnectItem;

}
else

{
       _radialMenu.Items[1] = _connectItem;
}

_radialMenu.Invalidate();
_radialMenu.Close();

But its hacky and its blinking when its closed, and its working only if _radialMenu.LayoutType = LayoutType.Default, its not working in LayoutType.Custom

Anybody have any idea how to make it correctly? There is no documentation fo RadialMenu in Xamarin.Android, so its hard to find any information about this.


Sakthivel Palaniyappan [Syncfusion]
Replied On January 10, 2020 12:29 PM UTC

Hi Pawel,

Greetings from Syncfusion.

We have analyzed your query and checked the reported issue of “Dynamically adding and removing items from RadialMenu not working”, we could replicate the issue. We confirm this as a bug and logged a defect report. You can keep track of the bug from the feedback portal below.

Feedback link:
https://www.syncfusion.com/feedback/11224/radialmenu-items-could-not-be-dynamically-added-or-removed

The fix for the reported issue will be available on 21st January ,2020.

We will publish the document for RadialMenu  in Xamarin.Android on 21st January ,2020.

If you have any more specification/precise replication procedure or a scenario to be tested, you can add it as a comment in the portal.

Regards,
Sakthivel P. 


Hemalatha Marikumar [Syncfusion]
Replied On January 30, 2020 08:43 AM UTC

Hi Pawel, 
 
Thanks for your patience. 
 
Please find the patch for the reported issue in below 
 
Advanced approach – use only if you have specific needs and can directly replace existing assemblies for your build environment
http://syncfusion.com/Installs/support/patch/17.4.0.39/1207414/F150508/SyncfusionPatch_17.4.0.39_1207414_1292020082926992_F150508.exe

(OR) 
 
(OR) 
 
Assembly Version: 17.4.0.39  
   
Disclaimer:  
  
Please note that we have created this patch for version 17.4.0.39 specifically to resolve the following issue reported in this incident. If you have received other patches for the same version for other products, please apply all patches in the order received 
  
Note: Currently we have patch support only to the main and service pack release version, not for weekly NuGet release. Then only provided a patch with 17.4.0.39 version. 
  
To Clear the cache: 
  
Windows   
   
Follow the below link to clear cache,   
   
For Mac   
   
• ~/.local/share/NuGet/Cache   
   
• ~/.nuget/package   
  
  
  

The fix will be included in our weekly NuGet release which is expected to be rolled out on February 04, 2020.
 
 
Please find the UG for RadialMenu in Xamarin.Android in below 
 
  
We appreciate your patience until then. 
 
Regards, 
Hemalatha M. 


Hemalatha Marikumar [Syncfusion]
Replied On February 4, 2020 08:40 AM UTC

Hi Pawel,

Sorry for the inconvenience,
 
  
The reported issue doesn’t include in the weekly NuGet release. In our previous implementation we have used the List type for the Items so it doesn’t reflect while changing  dynamically but In that fix we have change the List into Observable Collection, this should be consider as a feature and this will be included in our upcoming Volume 1 2020 release which will be rolled out end of March 2020.

We will let you know once our Volume 1 main release has been rolled out so use the provided patch until the release. 
 
Regards, 
Hemalatha M. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon