We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

SfPopupLayout ShowAtTouchPoint(), the menu appears from top left corner, can I change that?


I am using SfPopupLayout with the method ShowAtTouchPoint(). I would like to add a menu that opens when a button in the topbar is pressed. Something like this :

  Is there a way to change SfPopupLayout  so that  it opens from  right  corner?  Like this :

Thanks in advance!

1 Reply

MK Muthu Kumaran Gnanavinayagam Syncfusion Team February 3, 2020 07:17 AM

Hi Cortana, 
Thank you for using Syncfusion products. 
We have checked the reported query “Need to show popup when toolbar item clicked” from our side. We would like to let you know that you can achieve your requirement using absolute positioning in SfPopupLayout through SfPopupLayout.Show(x-position, y-position) method. 
You can pass the negative y value to position the popup over the toolbar as like below code snippets. 
private void ToolbarItem_Clicked(object sender, EventArgs e) 
  popupLayout.Show(this.Width, -12); 
For your reference, we have attached the working sample and you can download it from the below link. 
Please let us know if you require further assistance. 
G.Muthu kumaran. 

Live Chat Icon For mobile
Up arrow icon