Losing horizontal scrollbar after persist grid state

2 posts, 0 answers
  1. Arrash
    Arrash avatar
    6 posts
    Member since:
    Jun 2011

    Posted 26 May Link to this post

    Hi,

    I'm currently saving the grid state based on column reorder, resize ,show and hide. But when the grid loads, it seems to take the full height and doesn't seem to keep the actual grid height. Because of this the horizontal scroll bar goes right to the bottom of the screen.

    Is there anyway to save the grid height when the screen loads back?

    function loadGrid() {
                var grid = $("#unspsgrid Grid").data("kendoGrid");
                var toolBar = $("#grid  .k-grid-toolbar").html();
                var options = localStorage["grid "];
                if (options) {
                    grid .setOptions(JSON.parse(options));
                    $("#grid  .k-grid-toolbar").html(toolBar);
                    $("#grid  .k-grid-toolbar").addClass("k-grid-top");
                }
            }

  2. Helen
    Admin
    Helen avatar
    1052 posts

    Posted 27 May Link to this post

    Hello,

    Probably you will find helpful the following help article, which discusses a similar topic:

    http://docs.telerik.com/kendo-ui/controls/data-management/grid/appearance#height

    Regards,
    Helen
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top