【问题标题】:Angular Kendo Grid to be Non-Scrollable, and allow height to fit the Row Contents?Angular Kendo Grid 不可滚动,并允许高度适合行内容?
【发布时间】:2020-02-28 07:16:42
【问题描述】:

如何使 Angular 中的剑道网格不可滚动,并允许高度适合行内容?

这目前不起作用,它仍然给我一个固定的高度。

<kendo-grid [data]="propertyViews" [style.height.%]="100"
  [selectable]="false"
  [filterable]="false"
  scrollable="none"
  [sortable]="false"
  [pageable]="false"
  [loading]="loadingData">

<kendo-grid-column field="fullName" title="Full Name" [width]="80">
    <ng-template kendoGridCellTemplate let-dataItem let-rowIndex="rowIndex">
        <div>{{dataItem.ownerCombinedname}}</div>
    </ng-template>      
</kendo-grid-column>
<kendo-grid-column field="address" title="Mailing Address" [width]="40">
    <ng-template kendoGridCellTemplate let-dataItem let-rowIndex="rowIndex">
        <div>{{dataItem.address}}</div>
    </ng-template>
</kendo-grid-column>
</kendo-grid>

【问题讨论】:

    标签: css angular kendo-ui telerik angular8


    【解决方案1】:

    看看stackblitz here

    两个版本的 gendo 网格,一个可滚动,另一个不可滚动。您无需为网格设置任何高度。

    您需要做的是检查网格周围的情况。您能否提供一个重现这种情况的 stackblitz 示例?

    【讨论】:

      猜你喜欢
      • 2017-07-23
      • 2018-01-05
      • 1970-01-01
      • 1970-01-01
      • 2012-07-13
      • 1970-01-01
      • 1970-01-01
      • 2013-06-22
      • 2013-02-20
      相关资源
      最近更新 更多