Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

Kendo grid column width saving and loading

$
0
0
Hi Ethan,

Normally, the Grid layout is adjusted with the widget's resize() method. What it does is to adjust the height of the scrollable data area, depending on the Grid wrapper <div>'s height.

http://docs.telerik.com/kendo-ui/using-kendo-in-responsive-web-pages#individual-widget-resizing

What exactly are you trying to achieve by hiding and showing a column? Is the column widths configuration valid?

http://docs.telerik.com/kendo-ui/web/grid/appearance#column-widths

If you are using too small column widths and toggling one column's visibility in order to make the columns shrink, your approach is OK and there is no better one.

Using grid.options as an argument for the setOptions method is not correct. You need an object previously retrieved with getOptions().

http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#methods-getOptions

Finally, note that the Grid property names should be lowercase (Width, Field). I suppose you are transforming the casing currently on the fly, but consider making your job easier by storing the properties directly in the correct casing.

Regards,
Dimo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!

Viewing all articles
Browse latest Browse all 94857

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>