How to hide sub-menu item when sidebar collapse, but show sub-menu item when sidebar expands?

Hi, I am trying to hide 'User' item when sidebar closes, but show 'User' again when I expand sidebar by clicking 'Administrator' 

I tried using 'OnOpen' attribute for MenuEvents to set 'Cancel = true' for the sub-menu item 'User' when sidebar closes. However, 'Cancel' never changes back to 'false' to show 'User' when sidebar opens. How to fix this? Thanks.






Attachment: MenuBarTest_b9198d5d.zip

2 Replies

GK Gayathri KarunaiAnandam Syncfusion Team March 5, 2021 07:13 AM UTC

Hi Kenney, 
 
We have checked your reported query. We would like to let you know that when there is single level menu in sidebar, the submenu is not visible after the hidden property is set to false. We have already considered this as an issue in our end. We will include this fix in our upcoming patch release which will be scheduled on March 9th, 2021 and we appreciate your patience until then. 
 
Regards, 
Gayathri K 



GK Gayathri KarunaiAnandam Syncfusion Team March 9, 2021 03:22 PM UTC

Hi Kenney, 
  
Thanks for the patience. 
  
We are glad to announce that our weekly patch release (18.4.0.47) is rolled out. We have included the fix for your issue [ In single level menu in sidebar, the submenu is not visible] in this release. So, we suggest you upgrade our Syncfusion packages to our latest version to resolve this issue in your end. (18.4.0.47) 
  
Please let us know if you need further assistance on this. 
  
Regards, 
Gayathri K 


Loader.
Up arrow icon