How to change the height of Kendo ui Grid

后端 未结 5 506
悲哀的现实
悲哀的现实 2021-01-07 16:04

How do I change the height of the Kendo Grid when using wrappers?

5条回答
  •  余生分开走
    2021-01-07 16:43

    In strongly typed ones use for a rigid fixed height

    .Scrollable(scrollable => scrollable.Height(100))
    

    In Js after dataSource declaration use

    $("#Grid").kendoGrid({
    
                dataSource: { },
    
                height: 450,
    
                pageable: {
                    refresh: true,
                    pageSizes: true
                },
    
                columns:
                    [
                       ***
                    ]
            });
    

    You can also bind your grid for minimum and maximum heights for all the girds you have through css.

    .k-grid .k-grid-content {
     min-height: 100px;
     max-height: 400px;
    }
    

    Or you can specify a specific grid, you replace the .k-grid with the specific grid id #YourGridName. Hope this helps.

提交回复
热议问题