---
title: "Comment by Karel Ekema on \"Dynamic Actions in Interactive Grid\" | Hashnode"
description: "That makes sense, because your IG is not editable. So you don't have any column items, only cells. Once you make your IG an editable grid, it should work. For n"
url: "https://hashnode.com/posts/dynamic-actions-in-interactive-grid/65cc89229fc6ea9b037bc916/comment/65d27897e22680dc44e9aa45"
---

[Discussion](https://hashnode.com/posts/dynamic-actions-in-interactive-grid/65cc89229fc6ea9b037bc916)

Comment [Dynamic Actions in Interactive Grid](https://hashnode.com/posts/dynamic-actions-in-interactive-grid/65cc89229fc6ea9b037bc916)

[Karel Ekema](https://hashnode.com/@kekema)

[Feb 18, 2024](https://hashnode.com/posts/dynamic-actions-in-interactive-grid/65cc89229fc6ea9b037bc916/comment/65d27897e22680dc44e9aa45)

That makes sense, because your IG is not editable. So you don't have any column items, only cells. Once you make your IG an editable grid, it should work. For non-editable IG (and probably also for editable grids), you will need to check the underlying data in the model, which is conveniently passed in this.data

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1708292696550/a58ec6c5-1fca-40a6-970c-9dfbeeec17d3.png)

You can check with help of the js model api. Eg:

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1708294774052/b780bbb6-b5aa-4812-9525-cc92bd62ea0f.png)

(this.data.selectedRecords.length && this.data.model.getValue(this.data.selectedRecords\[0\], 'DESCRIPTION') != "")

Notice upon selection change, there can be multiple rows selected depending on the IG configuration.
