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.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

128144 Jan 4,2017 11:52 AM Jan 5,2017 07:41 AM JavaScript 1
loading
Tags: ejGrid
Mike Archipley
Asked On January 4, 2017 11:52 AM

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,
Mike

Jayaprakash Kamaraj [Syncfusion]
Replied On January 5, 2017 07:41 AM

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


CONFIRMATION

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.

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.

;