Hello,
I am trying to persist grid state behind the scenes without requiring the user to take any action. I have implemented a GridSettingsPersister class and it works perfectly on button click. I have implemented the ICallbackEventHandler interface to call my server-side persistence method and hooked-up calls from OnColumnHidden, OnColumnShown and OnTableDestroying.
My only issue revolves around persisting column reorder changes - on the server side (with <ClientSettings ReorderColumnsOnClient="true") the OnColumnsReorder event seems to be the in-process event (i.e. OnColumnsReordering) but there doesn't appear to be any corresponding post-process event (i.e. OnColumnsReordered) - the client side (<ClientSettings ReorderColumnsOnClient="false") exposes both events for a move right or left (OnColumnMovingToLeft, OnColumnMovedToLeft, OnColumnMovingToRight, OnColumnMovedToRight) [ Side note: the 'OnColumnMovingTo' methods seem to be misnamed Right should be Left and vice-versa] but the events only fire for the first column exchange so when a column is reordered more than a single spot I can't find any way to get the final position to set the OrderIndex.
I have a small (7.35 MB) sample app if needed.
Thanks for your help.
Regards,
Steve
I am trying to persist grid state behind the scenes without requiring the user to take any action. I have implemented a GridSettingsPersister class and it works perfectly on button click. I have implemented the ICallbackEventHandler interface to call my server-side persistence method and hooked-up calls from OnColumnHidden, OnColumnShown and OnTableDestroying.
My only issue revolves around persisting column reorder changes - on the server side (with <ClientSettings ReorderColumnsOnClient="true") the OnColumnsReorder event seems to be the in-process event (i.e. OnColumnsReordering) but there doesn't appear to be any corresponding post-process event (i.e. OnColumnsReordered) - the client side (<ClientSettings ReorderColumnsOnClient="false") exposes both events for a move right or left (OnColumnMovingToLeft, OnColumnMovedToLeft, OnColumnMovingToRight, OnColumnMovedToRight) [ Side note: the 'OnColumnMovingTo' methods seem to be misnamed Right should be Left and vice-versa] but the events only fire for the first column exchange so when a column is reordered more than a single spot I can't find any way to get the final position to set the OrderIndex.
I have a small (7.35 MB) sample app if needed.
Thanks for your help.
Regards,
Steve