0
我的劍道網:如何動態填充劍道網格的行?
<kendo-grid>
<ng-template ngFor [ngForOf]="gridColumns" let-column>
<kendo-grid-column field="{{column}}" title="{{column}}">
<ng-template kendoGridHeaderTemplate let-dataItem >
<span title={{column}}>{{column}}</span>
</ng-template>
</kendo-grid-column>
</ng-template>
</kendo-grid>
我有以下格式的JSON
響應:
Books: [
{
BookName: "Hello World!",
PageCount: 455
},
{
MagazineName: "Hello World!",
PageCount: 455
}
],
FirstName: "Jon",
LastName: "Arlington",
City: "London"
,我已經成功地從JSON
這樣填充列:
let gridColumns = ["FirstName", "LastName", "BookName", "MagazineName", "PageCount",
"MagazineName", "PageCount" ];
我的問題是如何添加行列?
將它角2工作(對不起,我遠離我的電腦?)。 – StepUp
@StepUp它的一個內置功能的劍道,所以它應該工作。 – DontVoteMeDown