[Data Grid Reactive] i want to remove column picker from  the grid
Question
Forge component by OutSystems R&D

hi

coulmn picker( the left column to make columns visible/invisible) is not needed for my project.

i want to remove it. how can i do it?

Hello @Jiro Yamada,

Thanks for bringing this subject to the discussion.

Can you please try to create a JavaScript Block inside the OnInitialize event from the Grid Block

And add the following code:
GridAPI.GridManager.GetGridById($parameters.GridId).provider.headersVisibility = 1;


Please bear in mind that we didn't make all the necessary tests to ensure that it will work on all cases. 

Can you confirm if this works?

Best regards,

Tiago Pereira

thank you very much

your suggestion contents me completely

Hi Jiro Yamada,

You can hide column picker icon by CSS. Add the below CSS to your style sheet

.wj-cell .wj-header span {

 display: none;

}

Regards,

Harika

@Harika Ramadalai 

Thank you for your replay

Your solution is nice. But I want to remove the column completely. 

Hello @Jiro Yamada,

Thanks for bringing this subject to the discussion.

Can you please try to create a JavaScript Block inside the OnInitialize event from the Grid Block

And add the following code:
GridAPI.GridManager.GetGridById($parameters.GridId).provider.headersVisibility = 1;


Please bear in mind that we didn't make all the necessary tests to ensure that it will work on all cases. 

Can you confirm if this works?

Best regards,

Tiago Pereira

thank you very much

your suggestion contents me completely

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