49
Views
1
Comments
Solved
[OutSystems Data Grid] Column Width - Wijmo XAML-style star sizing support
outsystems-data-grid
Reactive icon
Forge asset by OutSystems
Application Type
Reactive

I would like to use wijmo's grids Column Width property that supports XAML-style star sizing.  This feature is similar to OutSystems Column Layout and flexbox flex-grow, flex-shrink attributes. 

Currently the <type>Column widget's Width attribute is mapped to an integer based field, thus is cannot be set to flexible star sizes like "*" "2*", etc.

Is there a way to accomplish this currently via a config attribute or javascript?

If not, can this be added to backlog as a feature.

thanks

erik  

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

Hello @erik berg 

Have you tried the solution I gave in this post?

This will apply to all Columns:

OutSystems.GridAPI.GridManager.GetGridById($parameters.GridBlock).provider.columns.forEach( function(col) { col.width = '*'; });

but you can apply it to a particular Column: 

OutSystems.GridAPI.GridManager.GetGridById($parameters.GridBlockId).getColumn($parameters.ColumnBlockId )._provider.width='*';

Cheers,
GM

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