Question

Dynamic Columns in the Repeat Grid

Hi Team,

We have a work list with 10 columns and we have given an access to user to configure which columns user wants to see in the work list. How can we achieve this requirement using repeat grid. i mean if the user configured not to see particular column, we need to hide it,

We have achieved the solution using the Javascript in which user can see all the columns when the screen loads and after few milliseconds, columns will be hidden using java script.

I wanted to achieve this in the server side then client side, any inputs would be appreciated.

***Moderator Edit: Vidyaranjan | Updated Categories***

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Correct Answer
February 22, 2017 - 12:39am

HI Haritha,

Thanks for your reply, we need to source grid with Data page not with the RD. I have tried by applying the inline style in the column properties. Which is working fine and dont see any issues, PFA of the solution implemented.

But i am looking if there is any configuration from Pega OOTB to handle this.

 

Comments

Keep up to date on this post and subscribe to comments

Pega
February 21, 2017 - 5:04am

Hi,

You probably need to source the repeat grid with report definition, and use the option 'createGridDynamically' and specify the virtual report definition

February 22, 2017 - 12:39am
Response to Haritha12

HI Haritha,

Thanks for your reply, we need to source grid with Data page not with the RD. I have tried by applying the inline style in the column properties. Which is working fine and dont see any issues, PFA of the solution implemented.

But i am looking if there is any configuration from Pega OOTB to handle this.

 

March 21, 2017 - 10:01am

Hi,

I have to add/remove columns in data grid dynamically like apply filter on columns. Is there any way to get it OOTB?

Data page is source for grid.

 

April 14, 2017 - 10:12am
Response to RamKumarS2810

 In pega 7.2 UI gallery --> Grids --> Virtual RD grid displays Show/Hide button. On click of this button columns can be hidden dynamically on grid. This can be referred for this use case.