SfContextMenu - 2 issues, not able to get TargetId of disabled controls, not able to attach to controls inside sfTab

Hi - I'm facing 2 problems:


  1. When right clicking on a disabled item, the BeforeOpenCloseMenuEventArgs will contain a blank TargetId


Image_9491_1764366561748

2. When right clicking on an item inside a SfTab, the right click menu does not pop up and attach:


Image_2798_1764366616667


This works fine on regular controls. It doesn't work when the control is inside an SFTab



2 Replies

JB JB December 8, 2025 07:05 PM UTC

Hi - any updates on this please?



PS Praveen Sellappan Syncfusion Team December 9, 2025 08:40 AM UTC

Hi JB,


Thanks for reaching out.


Regarding “targetId blank for disabled item”:


We prepared a local sample using the Button component. For a disabled button, right-clicking still returned the correct targetId. The same behavior was observed for a normal (enabled) button.


Regarding “context menu not opening inside tab”:


In our sample, we placed a button inside the Tab component. Right-clicking on the button opened the Context Menu as expected without any issues.


We’ve attached the sample for your reference. Please review it and let us know if our implementation matches yours.


Since we couldn’t reproduce the issue, could you share the following to help us investigate further?


A minimal reproducible sample, or reproduce the issue in the sample we provided


  • Exact Syncfusion package versions in use
  • Environment details ( browser and version, OS)
  • Clear steps to reproduce, and any console errors.


Looking forward to your response.


Regards,

Praveen Sellappan


Attachment: contextmenu_bc8e207b.zip

Loader.
Up arrow icon