I have a ui grid with set of rows in it and a button below that.I want to disable button when no row is relected and enable it if atleast one row is selected. Below is the plunker of ui grid
http://embed.plnkr.co/nAJ6h07ksn1MIYcHpQ0Q/
I tried to disable button this way
<input class="button" name="submit" type="button" value="Find Flights"
ng-click="postdata()" ng-disabled="gridApi.grid.selection.selectedCount !== 0 ">
But this it is not getting enabled when a select a grid how can we achieve this