<script type="text/javascript"> $(document).ready(function () { if ($.cookie('colWidth') != null) { var columns = $.cookie('colWidth').split(','); var i = 0; $('.GridViewStyle th').each(function () { $(this).width(columns[i++]); }); } $(".GridViewStyle").colResizable({ liveDrag: true, gripInnerHtml: "<div class='grip'></div>", draggingClass: "dragging", onResize: onSampleResized }); $(".GridViewStyle").addClass("mGrid");{ } }); var onSampleResized = function (e) { var columns = $(e.currentTarget).find("th"); var msg = ""; columns.each(function () { msg += $(this).width() + ","; }) $.cookie("colWidth", msg); }; </script>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)