How to change the height of Kendo ui Grid

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

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

5条回答
  •  囚心锁ツ
    2021-01-07 16:41

    HtmlAttributes() will let you add attributes to the

    that holds the toolbars, paging, table, etc.

    TableHtmlAttributes() will let you add attributes to just the

    element

    Exmaple setting table to 750px by adding a style attribute:

      @Html.Kendo().Grid(Model)
                   .Name("Grid")
                   .TableHtmlAttributes(new {style="height: 750px;"})
    

    提交回复
    热议问题