ui-grid angularjs checkbox button not being resorted


grid angularjs i have a checkbox column after i check one column and sort with other column example age the active column is not being resorted this is a plunkr of the pbm


<!doctype html>
Problem courtesy of: Taha Amine Zeghbib


You have a problem with your cell template. You are not binding the value isActive to the checkbox.

Change the checkbox column to this

{ name: 'isActive', displayName: 'Active', type: 'boolean',cellTemplate: '<input type="checkbox" ng-model="row.entity.isActive">'}

This plnkr works right. http://plnkr.co/edit/PL7HvK1FY2ycuOrBbBTA?p=preview

Solution courtesy of: Kathir


There is currently no discussion for this recipe.

This recipe can be found in it's original form on Stack Over Flow.