This question is locked. New answers and comments are not allowed.
I'm scratching my head over this.
I am keeping track of column sizes client-side (stored in localStorage) as and when the users resize the grid columns (using the onGridColumnResize event).
What I want to then do is reapply the column sizes the next time the grid is rendered. I don't want to set the column widths server-side as part of the binding. Don't ask me why, it's just the way the system is designed. We don't track user column width preferences server-side.
The grid is configured to be scrollable so that the columns can be user-resized (if it's not setup as scrollable this doesn't work for some reason - not sure if this is a bug in the grid).
I've tried setting widths on the following using jQuery with no luck. I seem to only be able to set the div.t-grid width and then auto-magically all the columns take up space so that they fit the width of their container:
I've looked through the grid resize javascript and it's doing all sorts of things with drag events but none of it is public - there is no public api to abstract all the manipulations going on.
Has anyone successfully managed to programatically, in javascript been able to set individual column widths using a pixel value AND have the grid auto-size to fit?
Thanks.
I am keeping track of column sizes client-side (stored in localStorage) as and when the users resize the grid columns (using the onGridColumnResize event).
What I want to then do is reapply the column sizes the next time the grid is rendered. I don't want to set the column widths server-side as part of the binding. Don't ask me why, it's just the way the system is designed. We don't track user column width preferences server-side.
The grid is configured to be scrollable so that the columns can be user-resized (if it's not setup as scrollable this doesn't work for some reason - not sure if this is a bug in the grid).
I've tried setting widths on the following using jQuery with no luck. I seem to only be able to set the div.t-grid width and then auto-magically all the columns take up space so that they fit the width of their container:
div.t-grid colI've looked through the grid resize javascript and it's doing all sorts of things with drag events but none of it is public - there is no public api to abstract all the manipulations going on.
Has anyone successfully managed to programatically, in javascript been able to set individual column widths using a pixel value AND have the grid auto-size to fit?
Thanks.