MenuAdv MVVM CanExecute does not work

I bound an MenuItemAdv to an  ICommand, and it works fine. The problem is the the CanExecuteMethod does execute, but has no effect. I tried this with both PRISM 8 and Syncfusion's implementation of DelegateCommand

If I use the WPF MenuItem, then the menu disables as expected.


Is this a bug or have I missed something?



9 Replies

SA Sulthan Amanu Syncfusion Team January 27, 2022 03:32 PM UTC

Hi Russ,

We have a known issue related to “Disabled state of menuItemAdv”, Please confirm that you are reporting behavior also this one and we have attached a video for your reference. Based on your confirmation we will proceed further on this.


If you have faced any other issues, please modify our sample to reproduce the reported issue if possible. It's also useful for resolving the problem as soon as possible.


Regards,

Sulthan amanu


Attachment: Video_and_sample_329c5c34.zip


RU Russ January 27, 2022 03:53 PM UTC

Sulthan,


Thank you for reply. It does look like the problem, but I cannot be sure since I bound my commands to a view model. Thank you for confirming the issue; I thought I may be using the control incorrectly.

I installed the Syncfusion yesterday and the menu was the first control I tried. With this bug, I cannot use the menu for my project. I will not be spending any more time on this issue, and will be removing Syncfusion from my project, so I do not require a resolution.





SA Sulthan Amanu Syncfusion Team January 28, 2022 05:20 AM UTC

Hi Russ,

Sorry for the inconvenience caused.

We are recently logged on to the command binding related issue in Menuadv. our development team currently working on this issue,  we are to provide the solution in coming 3rd February.

If you have related queries, we would like to arrange a web meeting to avoid further delays. Could you please let us know your availability? We will make every effort to arrange a meeting at a date and time of your convenience.

Regards,
Sulthan amanu



RU Russ January 28, 2022 06:45 PM UTC

I appreciate the reply, but I have uninstalled Syncfusion and I am currently evaluating another product. 





SA Sulthan Amanu Syncfusion Team January 31, 2022 11:23 AM UTC

Hi Russ,


If you wish to use Syncfusion again, we will be happy to provide assistance


Regards,

Sulthan amanu



YO Yong replied to Sulthan Amanu March 27, 2024 08:19 PM UTC

Hi Syncfusion support,


I'm wondering if this "the command binding related issue in Menuadv" has been fixed in the latest version? I'm having the similar issue. The MenuItemAdv did not change to enable when the CanExecuteMethod excuted. 


Regards,


Yong



RU Russ replied to Yong Chen March 28, 2024 01:45 AM UTC

It does not. There is a work around. Do not use the "CanExecute" in the command but bind to the menu item's enabled property. Not ideal and requires a little more work, but it will do what you want.



YO Yong replied to Russ March 28, 2024 01:47 PM UTC

Thank you for the information.



BS Bhaskar Suresh Syncfusion Team April 3, 2024 04:57 AM UTC

Hi Yong Chen,


We have checked your reported scenario and it has already been fixed. This fix was included in the Main release version 25.1.35. Please refer to the sample and video for further information.


Regards,

Bhaskar Suresh


Attachment: MenuAdvICommandCanExecute_1c4388ef.zip

Loader.
Up arrow icon