Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2745
igGridHiding - Column Chooser vs Clicking on Header
posted

Background:  I am working on persisting the values of Show/Hide across a users session.  I was hoping that the 14.1 release contained this functionality but it doesn't.  So now there is a need for us to create this functionality in-house.  When a user show/hides a column using the header, it won't persist.  It only affects the current session.  However, if a user uses the column chooser dialog, I'll inject a [ ] Remember Settings in the dialog to give them an option to persist them across sessions.  Any events that are fired outside of column chooser dialog only affect the current session.  If and only if the remember settings box is check then applied, would the settings be saved.

Problem:  I need to know where the event originated.  Did the user click on the header to hide the column, or did they use the column chooser dialog to Show/Hide columns?  I need to know where the event originated.  I took a look at the debugger but I can't tell where it came from.  Is there some type of property that I missed or is the event caller the exact same?  At the moment, this is the only problem I am running into.

As a work around, I can queue up any calls for the next second after the dialog closes and treat them as selections but it isn't guaranteed.

Thoughts?