Hide/show columns in React Hooks

1 Answer 78 Views
Grid
Lucien
Top achievements
Rank 1
Iron
Lucien asked on 22 Apr 2022, 01:39 PM

Hi all, 

I found an example about how to hide and show specific columns (https://stackblitz.com/edit/react-grid-toggle-column-xyixv6?file=index.js)

Unfortunately, which is written in React class that I'm not familiar with at all ...

 

I would like to know if there are any other solutions or alternatives to realize the same functions but in  React Hooks ...

 

Any suggestions and help are very welcomed and appreciated. 

 

1 Answer, 1 is accepted

Sort by
1
Accepted
Konstantin Dikov
Telerik team
answered on 25 Apr 2022, 07:55 AM

Hi Lucien,

I have modified the example to use Hooks instead:

Please give this a try and let us know if further assistance is needed.

 

Regards,
Konstantin Dikov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Lucien
Top achievements
Rank 1
Iron
commented on 25 Apr 2022, 10:51 AM

Hi Kostantin, 

It works perfectly so far. Thanks a lot !
Tags
Grid
Asked by
Lucien
Top achievements
Rank 1
Iron
Answers by
Konstantin Dikov
Telerik team
Share this question
or