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?
I think the iggridhidingcolumnchooserbuttonapplyclick event will work for the above scenario. Testing it now.
Hello Daniel,
Thank you for contacting us!
About your question, my suggestion is to use the online example below in order to see when the events are fired. I have added iggridhidingcolumnchooserbuttonapplyclick event and through the API Viewer you will see before and after which events it is performed.
http://jsfiddle.net/YxfXZ/
If there is something else that I could do for you, please contact me.
The iggridhidingcolumnchooserbuttonapplyclick did work perfectly. I am able to persist settings across many grids on the same page, across user sessions and devices.
I am glad to hear that you've managed to accomplish this.
Thank you for using our controls.