网格加载时默认选择Angular 4 Kendo UI网格第一行

0 kendo-ui kendo-grid angular

我正在尝试在加载网格时默认选择角度剑道网格的第一行。有什么建议么 ?

Art*_*tem 7

您必须设置[kendoGridSelectBy][selectedKeys]属性才能执行此操作。

请注意 -该[selectedKeys]属性将无法正常工作,[kendoGridSelectBy]并且会引发错误Can't bind to 'selectedKeys' since it isn't a known property of 'kendo-grid'

阅读https://www.telerik.com/kendo-angular-ui/components/grid/selection/#toc-persisting-the-selection了解更多信息。