[Data Grid Reactive] Disable filtering for a single column
Forge component by Bruno Martinho
Application Type
Reactive

Hello!

Is it possible to disable filtering for a single column? This feature would be particularly relevant to the new action column, where presumably every row has the same text/ prompt.

Thanks!

Kristi

Hello @Kristi Kitz,

Thanks for bringing this subject to the discussion.

At the moment, this functionality is not available. We already have an issue about it in our backlog and the team will look into it!

-------------------------------------------------------

Right now, I would suggest the following workaround (.oml attached to the reply)

Create a new action on the OnReady Event. Inside, you might want to add a JavaScript just like in the image below.


For the code, I used the snippet:

var column = GridAPI.ColumnManager.GetColumnById($parameters.ColumnID);

GridAPI.GridManager.GetGridById($parameters.GridID)

    .features.filter._filter

    .getColumnFilter(column.provider)

    .filterType = 0; // disable the filter for the specified column


After setting the GridID and the ColumnID (to which you want to remove the filter):


You should end up with something like this:


Hope this answer is useful.

Best regards,

Tiago Pereira

DataGridReactiveDisableFilter.oml

Hi Tiago,

Thank-you for the prompt response, and the simple work around - I had no trouble implementing it, and it works perfectly.

Thanks again!

Kristi

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.