Creating a popup inside a StackPanel GridTemplateColumn in a SfDataGrid row

Hello,

I am working on creating a popup that has a placement target of a button inside in a StackPanel GridTemplateColumn in WPF. This GridTemplateColumn exists as part of a row in a SfDataGrid. I currently cannot open the popup at the row level unless I make the popup's placement target be the SfDataGrid.

Are you able to provide an example in which you can create a popup that appears at the row level of the StackPanel GridTemplateColumn of the SfDataGrid row? Do we need to have the popup be at the SfDataGrid level instead? 


1 Reply

SB Sweatha Bharathi Syncfusion Team August 1, 2025 12:18 PM UTC

Hi Eric Nguyen,


We have reviewed your query. Based on the information you provided, we have prepared a simple sample using GridTemplateColumn. Inside the CellTemplate, we placed a button within a StackPanel and created a popup that has placement target of button. The popup is configured to open when the button is clicked.
When the button is clicked, the popup is displayed, and it is working fine as expected.
We have attached the sample for your reference. Kindly review it. If we misunderstood your query, we request the following additional details about your scenario:
PopUp details: Kindly share the details about how you placed the Popup and Button inside a GridTemplateColumn, and additionally, share the details about how you attempted to open the Popup.
Modified Sample: Please modify the attached sample to reproduce the issue and share the updated version with us. 
Providing these details will help us better understand the issue and offer a more accurate and effective solution.


Regards,
Sweatha B

Attachment: Sample_f0c747b3.zip

Loader.
Up arrow icon