# Search on column type in c8y-device-grid is not working!

**URL:** <https://community.cumulocity.com/t/search-on-column-type-in-c8y-device-grid-is-not-working/14253>\
**Category:** Forum\
**Tags:** app-enablement\
**Created:** [February 4, 2026, 10:26pm UTC](https://community.cumulocity.com/t/search-on-column-type-in-c8y-device-grid-is-not-working/14253 "2026-02-04T22:26:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christof\_Strack](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/christof_strack/32/30066_2.png) [@Christof\_Strack](https://community.cumulocity.com/u/Christof_Strack)\
**Post date:** [February 4, 2026, 10:26pm UTC](https://community.cumulocity.com/t/search-on-column-type-in-c8y-device-grid-is-not-working/14253/1 "2026-02-04T22:26:45Z")

</div>

Hi all,

my template is defined as follows:

```auto
        <c8y-device-grid [title]="'Devices'" [columns]="columns" [actionControls]="[]"
          (itemsSelect)="onItemsSelect($event)" [selectable]="true"
          (onDeviceQueryStringChange)="onDeviceQueryStringChange($event)"></c8y-device-grid>

```

but when trying to apply a filter to the column `type` it is not taking any effect. Please see the following screenshot:

 ![Screenshot 2026-02-04 at 23.17.49](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/b/f/bf2567b019b12cc19827e8809930fca5f72ecb07.jpeg)

I use “@c8y/ngx-components”: “1023.17.6”.

Applying filters to the other columns works.  
What do I have to change to apply filters to the column `type`?

Regards Christof

---

<div class="post-metadata">

**Author:** ![Tristan\_Bastian](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/tristan_bastian/32/18259_2.png) [@Tristan\_Bastian](https://community.cumulocity.com/u/Tristan_Bastian)\
**Post date:** [February 5, 2026, 3:41pm UTC](https://community.cumulocity.com/t/search-on-column-type-in-c8y-device-grid-is-not-working/14253/2 "2026-02-05T15:41:02Z")

</div>

Hi Christof,

can you share how you’ve defined the `type` column in your `columns` array?

Regards,  
Tristan

---

<div class="post-metadata">

**Author:** ![Christof\_Strack](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/christof_strack/32/30066_2.png) [@Christof\_Strack](https://community.cumulocity.com/u/Christof_Strack)\
**Post date:** [February 6, 2026, 6:06am UTC](https://community.cumulocity.com/t/search-on-column-type-in-c8y-device-grid-is-not-working/14253/3 "2026-02-06T06:06:27Z")

</div>

Hi Tristian,

I’ve managed to get the search working by switching to a predefined column type.

**The Fix:** Instead of an inline object, I’m now using the existing `TypeDeviceGridColumn` class:

```auto
  getColumns(): Column[] {
    const cols: Column[] = [
      new NameDeviceGridColumn(),
      new GroupDeviceGridColumn(),
      new RegistrationDateDeviceGridColumn(),
      new SystemIdDeviceGridColumn(),
      new TypeDeviceGridColumn()
      // {
      // header: 'Type',
      // name: 'type',
      // path: 'type',
      // filterable: true,
      // sortable: true,
      // dataType: ColumnDataType.TextShort,
      // },
    ];
    return cols;
  }

```

**Observation:** Interestingly, while the inline object definition (using `ColumnDataType.TextShort`) works perfectly in a `<c8y-data-grid>`, it failed to return search results in the `<c8y-device-grid>`.

Is using the specialized column classes the intended way to handle this for Device Grids, or should the inline definition technically be supported there as well?

Regards Christof
