![](/img/trans.png)
[英]Kendo UI for Angular2 Grid: add row form on bottom instead of top of list
[英]How do I add a new row at the bottom of the grid? Kendo UI Angular 2/4
我嘗試在單擊“添加新”時添加新行。 請在以下示例中使用: Kendo UI for Angular 。 是否有帶有“ createAt”的Jquery之類的選項,還是我們必須進行一些DOM操作? 請提前告知並感謝。
實際上,您可以在此處更改一些實現,如果確實需要執行此操作,它將把您的行添加到底部。 在您的products.service.ts上 ,在save
方法中更改此代碼行
this.data.splice(0, 0, product);
至
this.data.push(product);
一切都會按您的意願進行。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.