Can we hide/show datagrid columns

0
Hi, all. One simple scenario but I cannot implement. I am trying to finish this, to hide/show a column in a datagrid. Maybe based on user roles. e.g.  An order list is show using datagrid, but different user role should see different columns. For example, manager can see the price column, but staffs cannot. I don’t want to setup two datagrid on the page, and set the visiable property for different grids. Even, I want to set up a configuration page for manager, who can configurate different colunm permission for different user roles. Can I?   I try to make something like this, getting the user role and find all the attributes(maybe), but I have no idea how can I retrieve the entities and attributes.
asked
2 answers
1

Hi Andes,

A quick solution is to use the conditional visibility, that you create for each user role their own data grid with the columns that should be visible to them. 

Cheers, 

Jeffrey

answered
0

I suspect you can use 

https://docs.mendix.com/appstore/modules/data-grid-2

and configure the toggle functionality.

Best, 

Tom

 

 

answered