You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: knowledge-base/grid-popup-in-cell.md
+45-35Lines changed: 45 additions & 35 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: Learn how to display a popup beside an icon embedded in a cell of t
4
4
type: how-to
5
5
page_title: How to Display Popup Next to Icon in Grid for Blazor
6
6
slug: grid-kb-popup-in-cell
7
-
tags: grid, blazor, popup, cell
7
+
tags: blazor, grid, popup, template
8
8
res_type: kb
9
9
ticketid: 1689992, 1640846
10
10
---
@@ -22,15 +22,15 @@ ticketid: 1689992, 1640846
22
22
23
23
## Description
24
24
25
-
I want to display a Popup beside an icon embedded within a cell in the [Grid for Blazor](slug:grid-overview). The Popup should appear when the icon is clicked.
25
+
I want to display a popup beside an icon embedded within a cell in the [Grid for Blazor](slug:grid-overview). The popup should appear when the icon is clicked.
26
26
27
27
## Solution
28
28
29
-
To display a Popup within a grid cell:
29
+
To display a popup within a Grid cell:
30
30
31
-
1.Define a dictionary to store references to all popups associated with the Grid items. This ensures that each Popup has a unique identifier tied to its corresponding item.
31
+
1.Add a button that triggers the popup for each row by using a `GridCommandColumn` or a column [`Template`](slug:grid-templates-column).
32
32
33
-
2.Use the `AnchorSelector` parameter of the `TelerikPopup` component to dynamically associate each popup with its corresponding icon. Set the `AnchorSelector` to the unique ID of the icon element.
33
+
2.Anchor the [`Popover`](slug:popover-overview) to the button via `AnchorSelector`.
34
34
35
35
Here is an example implementation:
36
36
@@ -41,45 +41,56 @@ Here is an example implementation:
0 commit comments