AngularUI: Dynamic Add a New Row to An ng-grid Table

ng-grid is a datagrid similar to koGrid or slickGrid. It is a high-performant datagrid using virtualization for rendering rows and really shines when you have lots of rows.

How to dynamic add a new row to the ng-grid view?

We can simply modify the array. It is angularJS’ responsible for updating the view. (If the data modification happens outside of angularJS, then you need to call $apply against the scope.)

Here is the example: http://plnkr.co/edit/1uLcok?p=preview

Leave a Reply

Your email address will not be published. Required fields are marked *

CAPTCHA