ContextMenu always left

After the version 18.2.0.44, my ContextMenu is no longer assuming the top and left values sent in the Open method. I've debugged to check if the values are actually going correct, and they are, but the component is always with top and left values 0 after render.

1 Reply 1 reply marked as answer

MK Mohan Kumar Ramasamy Syncfusion Team August 11, 2020 07:54 AM UTC

Hi Filipe, 
 
We have checked your reported query, currently we have provided the generic type support for context menu component. We have changed the Open method arguments. Could you please find the below code snippet. 
 
<div class="control-section"> 
    <div class="contextmenu-control"> 
        <div id="contextmenutarget">Right click/Touch hold to open the ContextMenu</div> 
        <SfContextMenu @ref="ConextMenuObj" Target="#contextmenutarget" Items="@MenuItems"></SfContextMenu> 
    </div> 
</div> 
 
<SfButton Content="Open" OnClick="OpenMethod"> </SfButton> 
@code{ 
    SfContextMenu<MenuItem> ConextMenuObj; 
 
    private void OpenMethod(MouseEventArgs args) 
    { 
        ConextMenuObj.Open(args.ClientX, args.ClientY); 
    } 
} 
 
For your reference, we have prepared a sample based on this, please refer below link. 
 
 
Please note that we have introduced several API breaks in this release. We would like you to review the breaking changes from the below location before you upgrade.

Link: https://blazor.syncfusion.com/documentation/release-notes/18.2.44/?type=all#context-menu 
 
Please let us know if you need any further assistance, 
 
Regards, 
Mohankumar R 


Marked as answer
Loader.
Up arrow icon