We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Adding a dynamically updated submenu to unhide(show) hidden columns

Thread ID:





128144 Jan 4,2017 04:52 PM UTC Jan 5,2017 12:41 PM UTC JavaScript 1
Tags: ejGrid
Mike Archipley
Asked On January 4, 2017 04:52 PM UTC

Hi All,
I recently implemented some functionality in the grid that creates a dynamically updated submenu to unhide columns based on columns that have been hidden. The submenu has a "Hide column" option that will hide the column that initiated the context menu when chosen. The contextopen function contains logic that will look at all columns that are hidden on the grid add add them to the "Unhide Column" submenu. When you select any column in that submenu that was previously hidden via the "Hide Column" option in the submenu, it will unhide the column and the column will no longer appear in the unhide submenu.

I created a playground area so you can see it in action here: http://jsplayground.syncfusion.com/2knrxdbh

To see what it does, just right click on any column and select "Hide Column". Then right click on any column again and go to the "Unhide Column" menu item and you will see your hidden column or columns in the sub menu. Selecting any hidden column will unhide that column from the grid.

Just thought I would share in case anyone else was looking for this functionality. Hope you find it useful.

Best Regards,

Jayaprakash Kamaraj [Syncfusion]
Replied On January 5, 2017 12:41 PM UTC

Hi Mike, 
I hope this information will be useful for our other users. Thanks for sharing with us. 
Jayaprakash K. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon