This is a migrated thread and some comments may be shown as answers.

Losing horizontal scrollbar after persist grid state

1 Answer 64 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Arrash
Top achievements
Rank 1
Arrash asked on 26 May 2016, 10:58 AM

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");
            }
        }

1 Answer, 1 is accepted

Sort by
0
Helen
Telerik team
answered on 27 May 2016, 08:22 AM
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
Tags
Grid
Asked by
Arrash
Top achievements
Rank 1
Answers by
Helen
Telerik team
Share this question
or