我的剑道网格:
<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" ];
我的问题是如何向列中添加行?