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
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.
Hello @Jeetaek Kim,
I can not share the .oml (owned by my company).