0

How can I check if any rows have been selected via a checkbox in an AngularJS grid in order to display a button and vice-versa?

sagesky36
  • 4,542
  • 19
  • 82
  • 130
  • are you talking about the UI-Grid directives or just in general have a grid with checkboxes and check if some have been selected? – Jony-Y Sep 14 '15 at 20:53
  • the latter.... I also don't have any checkboxes currently on the grid and would like to know a simple code snippet on adding a checkbox for each row. – sagesky36 Sep 14 '15 at 21:12
  • so your asking how to create a table with checkboxes on its side and how to know when the checkboxes have been checked? – Jony-Y Sep 14 '15 at 21:15
  • Exactly.... Once I know it's checked, I need to get cell information from that row. – sagesky36 Sep 15 '15 at 13:19
  • take a look at http://stackoverflow.com/questions/11872832/how-to-respond-to-clicks-on-a-checkbox-in-an-angularjs-directive if that doesnt help you Ill give you a small code example – Jony-Y Sep 15 '15 at 13:51

0 Answers0