Multiple Rows Update AngularJS

823 views
Skip to first unread message

balamurugan r

unread,
Jun 22, 2014, 5:10:56 AM6/22/14
to ang...@googlegroups.com

Hi Guys,

I have got a requirement like image above.. I can create the rows with ng-repeat with textbox.like (employee in employees) but how can i update the multiple scope if any change made in single row with update button?
And for adding i can add like new form with separate new modal employee in tfoot tag of table and perform validation.

Do we have any example for this to achieve this functionality ?

Can someone please help me on this asap ?

Thanks in advance


Naveen Kohli

unread,
Jun 22, 2014, 6:51:40 AM6/22/14
to ang...@googlegroups.com
Can you define "update multiple scope"? Do you mean update other rows based on change in one row?
See if this example helps.


When you will make any change to any row, your collection in model will have all the data. If you are running into some issues, let us know.

balamurugan r

unread,
Jun 22, 2014, 6:01:35 PM6/22/14
to ang...@googlegroups.com
Thanks a lot Naveen. You are so great.
Yes, i need to update multiple affected rows if user performs any changes to rows when update button gets clicked.
I hope updateAuctionItems function in your example does that.. but r we checking any changes in that scope collection with existing values before sending back to server to avoid roundtrip?

Thanks again
Reply all
Reply to author
Forward
0 new messages