32
Views
2
Comments
[OutSystems Data Grid] How to set the Datagrid Grid Layout dynamically?
OutSystems Data Grid
Forge asset by OutSystems
Application Type
Reactive

Hello,

I am looking to use the SetViewLayout client action to automatically configure the DataGrid layout based on the logged-in user. The layout configuration is stored in the database and should be applied automatically based on the userId, without requiring any user interaction.

Could you advise where the SetViewLayout action should be placed? Should it be in the handler of the OnInitialize event, the OnAfterFetch event of the DataAction of the Grid, or somewhere else?

I am experiencing some strange behavior with the Grid layout.

I am using DataGrid version 2.10.1.

Thank you!

Alain

2024-02-07 04-19-20
Jeetaek Kim

Could you give the oml file?


I haven't used SetViewLayout yet, but I think it should be placed in the OnInitialize handler of the Grid widget.

And for that, you should wrap the Grid widget by IF widget which condition is HasFetched of the DataAction that retrieves layout data.


Sincerely, Jeetaek Kim.

UserImage.jpg
Alain Cuvillier

Hello @Jeetaek Kim,

I can not share the .oml (owned by my company).

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