18
Views
1
Comments
Solved
[OutSystems Data Grid] By Default Filter Condition instead of showing Filter Value
Question
outsystems-data-grid
Reactive icon
Forge asset by OutSystems

Hi All,


By default, I want to show tab filter by condition instead of filter by value. How can this be achieved in OutSystems grid? 


Thanks,

Sathish R

2022-11-12 11-28-30
Gonçalo Martins
Staff
Solution

Hello @Sathish Kumar 

To achieve that you should be able to add to the Initialize event of the Grid block a JS node with the following code:

let myGrid = OutSystems.GridAPI.GridManager.GetGridById($parameters.GridWidgetId);
let filter = myGrid.features.filter;

filter._filter.filterChanging.addHandler(function (s, e) {
    s.activeEditor._showFilter(1); 
});

Hope it helps.

Cheers,
GM


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