How to use Popup in GRID - when HTML anchor repeats

1 Answer 93 Views
Grid Popup
LJ
Top achievements
Rank 1
Iron
Iron
LJ asked on 29 Oct 2021, 07:55 PM

I am wanting to leverage kendo Popup component with in a Grid.  The problem I'm having is to isolate or parametrize the popup component so that it only opens for the cell data that the user interacts with.  At present, the Popup uses an HTML style anchor and I have not determined how to pass a unique attribute so that the Popup opens only for the cell/row the user engages. 

 

Please have a look at this Stackblitz stubbed out to show as example of scenario:

Any help from this community forum will be helpful and appreciated!!

Thx,

LJ

1 Answer, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 03 Nov 2021, 09:04 AM

Hi LJ,

Using the declarative syntax to create a Popup component in each and every Grid cell of the respective column in its cell template is not optimal and leads to the observed undesired behavior (all popups are displayed simultaneously).

To open a single popup each time a button is clicked, I can suggest utilizing the Popup Service instead:

https://www.telerik.com/kendo-angular-ui-develop/components/popup/service/

Create a new Popup and pass the desired data item properties to display in the content.

Here is the updated example:

https://stackblitz.com/edit/angular-bpyibp-qmrldu?file=app%2Fapp.component.ts

I hope this helps.

Regards,
Dimiter Topalov
Progress Telerik

Remote troubleshooting is now easier with Telerik Fiddler Jam. Get the full context to end-users' issues in just three steps! Start your trial here - https://www.telerik.com/fiddler-jam.
Tags
Grid Popup
Asked by
LJ
Top achievements
Rank 1
Iron
Iron
Answers by
Dimiter Topalov
Telerik team
Share this question
or