194
Views
5
Comments
[Data Grid Web] Freeze the first 3 column
Forge component by OutSystems R&D
41
Published on 14 Dec 2020

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

Rank: #2175

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: #2175

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>"


Rank: #448

The proper way to do this is passing the wijmo parameter and parameter value to the the OS grid's AdvancedFormat property.

  Property:  AdvancedFeatures

  Value: "frozenColumns: 2"

However this does not work due to OS's datagrid's wrapper frozenColumns property implementation.  I filed a support ticket with OutSystems to respect the frozenColumns passed in parameter value.

Until its fixed, use Takahisa workaround for this and other non respected wijmo properties.


Rank: #3129

erik berg wrote:

The proper way to do this is passing the wijmo parameter and parameter value to the the OS grid's AdvancedFormat property.

  Property:  AdvancedFeatures

  Value: "frozenColumns: 2"

However this does not work due to OS's datagrid's wrapper frozenColumns property implementation.  I filed a support ticket with OutSystems to respect the frozenColumns passed in parameter value.

Until its fixed, use Takahisa workaround for this and other non respected wijmo properties.


 

 Is this fixed? I can't get it working on my grid.

Staff
Rank: #567

Hello Guys,


This seems to be solved by now.

There is a sample attached on this message showing how to do it, look to the Grid's AdvancedFormats property.


Thank you

Ricardo

DataGridFrozenCols.oml