176
Views
4
Comments
[Data Grid] Freeze the first 3 column
Forge component by OutSystems R&D
41
Published on 13 Oct 2020

How can I freeze the first three columns without right-clicking and input the number of columns i want to freeze?

Rank: #2821

You can fix it by writing script in Expession under Grid Widjet.

<script>

var gObj =GridOS.ComponentUtils.getGridObjectById("+ Grid.Id +");
gObj.columns.frozenColumns = 3;
gObj.grid.frozenColumns = 3;
</script>


Try it.

Rank: #2821

I'm sorry.
As there was a mistake, I correct it.

"<script>

var gObj =GridOS.ComponentUtils.getGridObjectById(" + Grid.Id + ");
gObj.columns.frozenColumns = 3;
gObj.grid.frozenColumns = 3;
</script>"