Cireson Partners, Customers and Community members share your customizations and examples here to help benefit the community as a whole to earn Kudos and badges.
DISCLAIMER
All files and projects located here are provided and come "as-is" and without any warranty or support. Use at your own risk. Your use of Community Uploads is subject to our Terms of Use.
Cireson does not and will not support or maintain these enhancements, extensions, and scripts.
For Team Cireson uploads click here.
Reset the grids for all users when the portal is upgraded.
My solution to this is to record the current build version into the local storage and check it when the browser loads the portal. If the numbers do not match, the browser is instructed to clear the cached definitions for all the grids. The downside to it is that users will lose any filters or sorting that they had defined on the grids.
Here's the code:
$(document).ready(function () {<br> var gridReset = app.storage.gridStates.get('status_staticFileVersion');<br> if (!gridReset && gridReset != session.staticFileVersion)<br> {<br> app.storage.gridStates.clearAll();<br> app.storage.gridStates.set('status_staticFileVersion',session.staticFileVersion)<br> };<br>});
Comments
Doing the reset view manually, or running the script above just provide for a temporary fix, meaning that after a few minutes, the date is reverted to the long one (with the timezone and such) and have to reset the view again, which is not sustainable.
So instead of:
7/14/2017 11:46 AM
we get
Fri Jul 14 2017 11:46:15 GMT-0400 (Eastern Daylight Time)
That's quite a lot of space used for nothing in a grid column.
hope this helps,
adrian
hope you get it sorted...
adrian
How do we display Long date format in Cireson Portal grid table ?