Hovering over one MenuItemAdv enables others.

From attached picture below, Power Off is not enabled when program starts. For some reason if I hover over "Search for Devices," Power Off becomes enabled even though no code is executed on my end. How can I fix this?




37 Replies

MK Mallika Kannan Syncfusion Team March 16, 2018 12:14 PM UTC

Hi Caleb Kliewer, 
 
Thanks for contacting Syncfusion support. 
 
We have checked your query “Disabled MenuItem is enabled automatically while hovering other menuItem in MenuAdv control” and it is working as expected at our end. We have attached the sample in which we have tried to reproduce the issue. In this sample we have bound a collection of Item to the MenuAdv control and updated the IsEnabled property of the MenuItem through IsEnabled property of Model.cs class. Please check the below sample and let us know whether we have missed anything to replicate your scenario. You can download the sample from below location, 
 
 
Also we have prepared sample which tries to reproduce the issue by adding direct MenuItems to the MenuAdv control,                                                                                                                                               
                                                                                                                                               
 
If we have misunderstood your query please get back to us with more details like sample or modify the above sample to reproduce the issue. 
 
Regards, 
Mallika 



RA Radoslaw January 2, 2021 07:30 PM UTC

I have got that same problem. I want to dynamically change IsEnabled property of MenuItemAdv from ViewModel. In my case, three items are disabled and one item is enabled. When I hover mouse cursor on enabled MenuItemAdv other items also changing state from disabled to enabled. How to fix it?



VR Vijayalakshmi Roopkumar Syncfusion Team January 4, 2021 01:08 PM UTC

Hi Radoslaw 
 
Thank you for using our Syncfusion Products. 
 
As we are unable to reproduce this behavior using the simple scenario and also using ViewModel property as per our previous update, could you please provide us the code related to IsEnabled property with MenuAdv and MenuItemAdv. It would be helpful for us to check and provide you the details accordingly. 
 
Please let us know if you have any other concerns. 
 
Regards, 
Vijayalakshmi VR 



DW Declan Walsh October 15, 2021 01:38 AM UTC

I'm also experiencing this problem.

It works as expected if I change out the <syncfusion:MenuItemAdv> for a standard <MenuItem>.


DataConext is the ViewModel.


This does not work and behaves as described by OP:

<syncfusion:MenuItemAdv Header="_File">

                    <syncfusion:MenuItemAdv Header="_Open..." MinWidth="150" Command="{Binding CommandOpenCal}"/>
                    <syncfusion:MenuItemAdv Header="_Save" Icon="" IsEnabled="{Binding CalFileIsOpen, FallbackValue=False}" Command="{Binding CommandSaveCal}"/>
                    <syncfusion:MenuItemAdv Header="Save _As..." IsEnabled="{Binding CalFileIsOpen, FallbackValue=False}" Command="{Binding CommandSaveCalAs}"/>
                    <syncfusion:MenuItemSeparator/>
                    <syncfusion:MenuItemAdv Header="_Close" IsEnabled="{Binding CalFileIsOpen, FallbackValue=False, NotifyOnSourceUpdated=True}" Command="{Binding CommandCloseCal}"/>
                    <syncfusion:MenuItemSeparator/>
                    <syncfusion:MenuItemAdv Header="_Options..." Command="{Binding CommandOptions}"/>
                    <syncfusion:MenuItemSeparator/>
                    <syncfusion:MenuItemAdv Header="E_xit" Command="{Binding CommandExitApp}"/>
                </syncfusion:MenuItemAdv>


This Works no problem:

<MenuItem Header="_File">
                    <MenuItem Header="_Open..." MinWidth="150" Command="{Binding CommandOpenCal}"/>
                    <MenuItem Header="_Save" Icon="" IsEnabled="{Binding CalFileIsOpen, FallbackValue=False}" Command="{Binding CommandSaveCal}"/>
                    <MenuItem Header="Save _As..." IsEnabled="{Binding CalFileIsOpen, FallbackValue=False}" Command="{Binding CommandSaveCalAs}"/>
                    <Separator/>
                    <MenuItem Header="_Close" IsEnabled="{Binding CalFileIsOpen, FallbackValue=False, NotifyOnSourceUpdated=True}" Command="{Binding CommandCloseCal}"/>
                    <Separator/>
                    <MenuItem Header="_Options..." Command="{Binding CommandOptions}"/>
                    <Separator/>
                    <MenuItem Header="E_xit" Command="{Binding CommandExitApp}"/>
                </MenuItem>




TB Thirupathi Bala Krishnan Syncfusion Team October 17, 2021 06:05 PM UTC

Hi Declan,         

Thanks for contacting Syncfusion support.  
          
We have confirmed the reported scenario is a defect and logged a report for the reported scenario “Disabled menu items are enabled when hover the item”. We’ll provide the patch file fore the reported issue on 29th October, 2021. 
          
You can track the status of this defect using the following feedback link:            

Note: We were unable to add your id to the above feedback link due to an internal issue. We'll add your email address as soon as possible.          

If you have any more specification replication procedure or a scenario to be tested you can add it as a comment in the portal.            
            
Please let us know if you need any further assistance.           
       
Regards,        
Thirupathi B. 



DW Declan Walsh October 19, 2021 10:42 PM UTC

Fantastic. Thankyou!



TB Thirupathi Bala Krishnan Syncfusion Team October 20, 2021 06:13 AM UTC

Hi Declan,  

Thanks for the update.
 
 
As previously stated, we’ll provide the patch file for the reported issue on 29th October 2021. We appreciate your patience until then.   
 
Regards,
Thirupathi B.
   



TB Thirupathi Bala Krishnan Syncfusion Team October 29, 2021 07:40 AM UTC

Hi Declan,

Thanks for your patience.
  
  
We have fixed the reported issue “Disabled menu items are enabled when hover the item”. Please find the patch file from the following location:     

V19.3.0.43 
Recommended approach – exe will perform automatic configuration                  
Please find the patch setup here:                                        
                    
Advanced approach – use only if you have specific needs and can directly replace existing assemblies for your build environment                                   
Please find the patch assemblies alone from:                   
                
Please find the Nugets from the below location:                  
                 
              
NOTE:        
You can change how you receive bug fixes by navigating to the following link and updating your preferences.       
                
Disclaimer:                                 
Please note that we have created this patch for the version 19.3.0.43 specifically to resolve the issues reported in this forum #136480. If you have received other patches for the same version for other products. This fix will be included in our Volume 3 SP1 release which will be available in mid-November 2021.    
  
Please let us know if you need any further assistance.  
  
Regards,
Thirupathi B.
  
 



DW Declan Walsh October 30, 2021 08:12 AM UTC

Hi,

Thanks for the update.

The patch has solved the item's enabling themselves on hover, however they are not changing back to disabled when the bound bool changes back to disabled.


The IsEnabled binding only seems to work once.


Once again, changing out the MenuItemAdv for a MS Menu solves the problem.



TB Thirupathi Bala Krishnan Syncfusion Team November 1, 2021 09:28 AM UTC

Hi Declan,          

Sorry for the inconvenience caused. 
           
We have confirmed the reported scenario is a defect and logged a report for the reported scenario “MenutemAdv IsEnabled property didn't works when changing the value at runtime”. We’ll provide the patch file for the reported issue on or before 9th November, 2021.  
           
You can track the status of this defect using the following feedback link:             

If you have any more specification replication procedure or a scenario to be tested you can add it as a comment in the portal.             
             
Please let us know if you need any further assistance.            
        
Regards,         
Thirupathi B. 



TB Thirupathi Bala Krishnan Syncfusion Team November 9, 2021 03:35 PM UTC

Hi Declan,

Thanks for your patience.
   
   
We have fixed the reported issue “MenutemAdv IsEnabled property didn't works when changing the value at runtime”. Please find the patch file from the following location: 

V19.3.0.43 
 
Recommended approach – exe will perform automatic configuration                   
Please find the patch setup here:                                         
                     
Advanced approach – use only if you have specific needs and can directly replace existing assemblies for your build environment                                    
Please find the patch assemblies alone from:                    
                 
Please find the Nugets from the below location:                   
                  
               
NOTE:         
You can change how you receive bug fixes by navigating to the following link and updating your preferences.        
                 
Disclaimer:                                  
Please note that we have created this patch for the version 19.3.0.43 specifically to resolve the issues reported in this forum #136480. If you have received other patches for the same version for other products. This fix will be included in our Volume 4 release which will be available in December 2021.     
   
Please let us know if you need any further assistance.   
   
Regards,
Thirupathi B.
  
 



DW Declan Walsh November 10, 2021 12:30 AM UTC

That fixed the issue. Menu seems to work as intended now. Thankyou.



TB Thirupathi Bala Krishnan Syncfusion Team November 10, 2021 06:07 AM UTC

Hi Declan, 

Thanks for confirming that the reported issue resolved at your end. Please let us know if you need any further assistance on this. As always, we are happy to assist you. 

Regards,
Thirupathi B. 



DW Declan Walsh April 11, 2022 02:24 AM UTC

Hi,

I've just updated to 20.1.0.47 and this issue is back. I assume this didn't get included in the latest release?



SA Sulthan Amanu Syncfusion Team April 12, 2022 06:18 PM UTC

Hi Declan,


Sorry for the inconvenience caused


We can reproduce the problem at our end. We have considered this as a bug and logged a defect report on our end. We’ll provide the patch file for the reported issue on April 19, 2022. We appreciate your patience until then.


Please follow the below feedback link for further details.


Feedback link -https://www.syncfusion.com/feedback/34142/disabled-menu-items-are-enabled-when-hover-the-item-in-menuadv


Regards,

Sulthan Amanu



FS Fanourios Siskakis April 14, 2022 09:08 PM UTC

This issue keeps persisting. Setting a bound property in the ViewModel to false, will not trigger the menu to be disabled.

The code is taken exactly from your tutorials, with the only addition the extra HasPermissions property.

<syncfusion:MenuAdv.ItemContainerStyle>

                    <Style BasedOn="{StaticResource {x:Type syncfusion:MenuItemAdv}}" TargetType="{x:Type syncfusion:MenuItemAdv}">

                        <Setter Property="Icon" Value="{Binding ImagePath}" />

                        <Setter Property="InputGestureText" Value="{Binding GestureText}" />

                        <Setter Property="Command" Value="{Binding MenuItemClicked}" />

                        <Setter Property="CommandParameter" Value="{Binding MenuItemName}" />

                        <Setter Property="IsCheckable" Value="{Binding IsCheckable}" />

                        <Setter Property="CheckIconType" Value="{Binding CheckIconType}" />

                        <Setter Property="IsEnabled" Value="{Binding HasPermissions}" />

                        <Setter Property="Margin" Value="0,0,10,0" />

                        <Setter Property="FontSize" Value="17" />

                    </Style>

                </syncfusion:MenuAdv.ItemContainerStyle>

I use the nuget Version for => Syncfusion.Shared.WPF 19.4.0.56

I think this repetitive issue is getting out of hand, with the repetitive bugs, dont you think :)?

If the above IsEnabled property is set manually to false, the all the menu items are correctly (although hardcoded) disabled



SA Sulthan Amanu Syncfusion Team April 18, 2022 06:14 PM UTC

Hi Fanourios,


We deeply regret the inconvenience caused.


We have considered the reported case too and it will be included in the patch


Regards,

Sulthan Amanu



SA Sulthan Amanu Syncfusion Team April 20, 2022 06:07 PM UTC

Hi Fanourios,


Sorry for the inconvenience caused


While resolving the reported issue, we are encountering some difficulties. As a result, we are unable to deliver the patch file as promised. We will require additional time to resolve the reported issue. We will include the fix in our upcoming weekly NuGet release, which is expected on April 26, 2022.


Regards,

Sulthan amanu



FS Fanourios Siskakis April 21, 2022 07:46 PM UTC

I understand. I am looking forward for the correction


With regards

Fanourios Siskakis



SA Sulthan Amanu Syncfusion Team April 27, 2022 02:12 PM UTC

Hi Fanourios


Sorry for the inconvenience caused.


We are facing some other issues while trying to fix the reported issue. Since we were unable to include the fix in the weekly nuget as promised. We need some more time to fix this issue and we will share the patch on April 29th, 2022.


Regards,

Sulthan amanu



SA Sulthan Amanu Syncfusion Team May 1, 2022 05:11 PM UTC

Hi Fanourious,


Thanks for your patience.


We have fixed the reported issues . Please find the patch file from the following location:     


V20.1.0.47

Recommended approach – exe will perform automatic configuration                  

Please find the patch setup here:

https://syncfusion.com/Installs/support/patch/20.1.0.47/1080073/F136480/SyncfusionPatch_20.1.0.47_1080073_5012022114726104_F136480.exe                                        

Advanced approach – use only if you have specific needs and can directly replace existing assemblies for your build environment      

Please find the NuGet  alone from: 

https://syncfusion.com/Installs/support/patch/20.1.0.47/1080073/F136480/SyncfusionPatch_20.1.0.47_1080073_5012022114726104_F136480.zip                                    

Please find the patch assemblies alone from:                   

https://syncfusion.com/Installs/support/patch/20.1.0.47/1080073/F136480/SyncfusionNuget_20.1.0.47_1080073_5012022114726104_F136480.zip


NOTE:        

You can change how you receive bug fixes by navigating to the following link and updating your preferences.       

https://www.syncfusion.com/support/directtrac/patches               

                

Disclaimer:                                 

Please note that we have created this patch for version 20.1.0.47 specifically to resolve the issues reported in this forum #136480. If you have received other patches for the same version for other products, please apply all patches in the order received. This fix will be included in our May 3, 2022, weekly NuGet release.


Regards,

Sulthan Amanu



FS Fanourios Siskakis May 3, 2022 03:56 PM UTC

Thanks a lot for your info.

I will take a look at the update now and check that everything works as expected.


With regards

Fanourios Siskakis


-EDIT #1: are you sure the patch is updated through the newer versions? I have the 20.1.0.51 and it still doesnt seem to work...
-EDIT #2: Same thing with the newest version from today, 20.1.0.52, this issue still exists

Could you please check this?



DW Declan Walsh May 3, 2022 04:06 PM UTC

20.1.0.52: The menu no longer reacts to any kind of enable binding now. It's even more useless.



FS Fanourios Siskakis May 4, 2022 11:05 AM UTC

could you please check this bug and finally correct this?

this is not a nice thing to see...



FS Fanourios Siskakis May 8, 2022 10:57 AM UTC

a week has passed and no answer from the devs yet???

Really :)??



DW Declan Walsh May 9, 2022 01:44 AM UTC

I gave up and went back to a standard Microsoft menu. Works a treat.



PS Prabakaran Sangameswaran Syncfusion Team May 9, 2022 10:06 AM UTC

Hi Fanourious/Declan,


Sorry for the delay.


We have fixed the reported issues and the fix will be included in our upcoming volume-1 2022 SP release which is expected to roll out on or before 13th May, 2022. Please find the patch file for the fix in volume-1 2022 release version 20.1.0.47 from the following location: 


V20.1.0.47

Recommended approach – exe will perform automatic configuration                  

Please find the patch setup here:

https://syncfusion.com/Installs/support/patch/20.1.0.47/1030073/F136480/SyncfusionPatch_20.1.0.47_1030073_5092022035525651_F136480.exe                                        

Advanced approach – use only if you have specific needs and can directly replace existing assemblies for your build environment      

Please find the NuGet  alone from: 

https://syncfusion.com/Installs/support/patch/20.1.0.47/1030073/F136480/SyncfusionNuget_20.1.0.47_1030073_5092022035525651_F136480.zip

Please find the patch assemblies alone from:                   

https://syncfusion.com/Installs/support/patch/20.1.0.47/1030073/F136480/SyncfusionPatch_20.1.0.47_1030073_5092022035525651_F136480.zip


NOTE:        

You can change how you receive bug fixes by navigating to the following link and updating your preferences.       

https://www.syncfusion.com/support/directtrac/patches               

Disclaimer:                                 

Please note that we have created this patch for version 20.1.0.47 specifically to resolve the issues reported in this forum #136480. If you have received other patches for the same version for other products, please apply all patches in the order received.


Regards,

Prabakaran S



FS Fanourios Siskakis May 9, 2022 12:56 PM UTC

So, just to be clear, after 13. May, this fix is supposed to be in the latest nuget versions, right?
Because as we reported above, the latest nuget versions are not getting updated with the fixes you mentioned.


Could you please report on this thread, whenever the latest nuget Version is updated with this fix, in order for us to test it?

That would be helpful.

Thanks a lot

With regards

Fanourios Siskakis



PS Prabakaran Sangameswaran Syncfusion Team May 9, 2022 05:14 PM UTC

Hi Fanourious,

As mentioned in previous update, we will include the fix in upcoming volume-1 2022 SP release which is expected to roll out on or before May 13th, 2022 with the latest nuget. We appreciate your patience until then. We will let you know once it gets rolled out.       


Regards,
Prabakaran S



FS Fanourios Siskakis May 13, 2022 09:36 AM UTC

So, i saw that a new nuget Version is added, 20.1.0.55.
Are we to assume that you fixed the above problem in this version?

It would not be nice to update, test the whole thing again and see that it doesnt work again...



FS Fanourios Siskakis May 15, 2022 05:18 PM UTC

Hello again, The IsEnabled binding doesnt work once again... (version 20.1.0.55 )
this is getting in my nerves you know?? You are confirming that your changes are tested, are in the latest nuget packages, but they dont seem to work...

What kind of quality assurnanse do you have over there?? For real now... It is not enough that such easy things are still buggy in your software, you fail to correct them after aaaaall this time...

I should not mention all the emails "proposing" us to get the paid version instead of the free one...


What are you going to do about that???



SA Sulthan Amanu Syncfusion Team May 16, 2022 01:10 PM UTC

Hi Fanourios,


We sincerely apologize for the inconvenience.


We are unable to reproduce the reported issue at our end with the most recent version (20.1.0.55). We have attached the tested sample and video for your reference. Could you please check again with the latest version of the NuGet by clearing the cache as per the instructions below?


https://www.syncfusion.com/kb/6987/how-to-clear-nuget-cache   


Regards

Sulthan Amanu


Attachment: Video_and_Sample_d44e6685.zip


FS Fanourios Siskakis May 16, 2022 10:20 PM UTC

Well, after a lot of debugging, how on earth it works on your project with the same code as mine, figured it out.


First of all, i apologize, you fixed indeed the original Problem. I am sorry about my comments...
Secondly, the problem in my solution is that i also have set a command on that enabled/disabled Menu. And somehow the command overrides the IsEnabled property, since i guess it is executed in a later time.

Wouldn't it be more correct to first check the IsEnabled (since this is specifically set in the root of the Element and has bigger priority) and then if IsEnabled check the CanExecute of the command.

I think that would be the correct logic behind it.


With regards

Fanourios Siskakis



SA Sulthan Amanu Syncfusion Team May 17, 2022 11:05 AM UTC

Hi Fanourios,

Please let us know if you have any other concerns on this. We will be glad to assist you.

Regards,

Sulthan Amanu




FS Fanourios Siskakis May 17, 2022 06:59 PM UTC

If i understand you correctly, you will not change the logic behind the simultaneous Command + IsEnabled attributes, right?


Fanouris



SA Sulthan Amanu Syncfusion Team May 19, 2022 03:22 AM UTC

Hi Fanouris,


We will validate the query and update the complete details in two business days(20th May 2022).


Regards,

Sulthan Amanu



SA Sulthan Amanu Syncfusion Team May 22, 2022 07:04 AM UTC

Hi Fanouris,

Sorry for the miscommunication in the precious updates.


The investigation with framework control confirms that it does not execute the command when IsEnabled is false. However, when IsEnabled is true, command is executing and the UI is enabled/disabled based on the return value of CanExecute method.


Could you please confirm that you are expecting the same behaviour for the Syncfusion control? Based on your confirmation, we will check and update the possibilities of your requirement.


Regards,

Sulthan Amanu


Loader.
Up arrow icon