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
375
Save column order to cookie when column is moved in igGrid
posted

Hi,

I'm currently trying to save the igGrid settings (filtering, sorting, column order etc.) to cookies, so that those settings can be restored when the user returns to the same grid. This is working fine for filtering, sorting and paging, but I'm having some trouble saving the column order when a column is moved.

I'm handling the event iggridcolumnmovingcolumnmoved, and then calling code which needs to save the new column order to a cookie. The event handling is working fine, but I'm not sure what properties to access which store the column order. For the other settings (like filtering), I'm getting the data I need from $(gridID).data("igGrid").dataSource.settings, but the column order doesn't seem to be stored in there. Likewise, I can't find the column order in the evt or ui parameters that are passed into my event handler.

Can you please help with with this?

Parents Reply Children
No Data