Sign up ×
Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them, it only takes a minute:

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

"http://plnkr.co/edit/Q3Fs3XiRBpqkzKdZlGXW?p=preview"

<!doctype html>
share|improve this question
1  
We (atleast I) cannot understand you... – Fábio Santos May 12 at 10:02
    
please see the plnkr , what i am trying to say is when i check the active button of the first row for example and then i sort my grid with the age column the checked active button is always on the first row – Taha Amine Zeghbib May 12 at 10:04
    
Ya, I'm doing it right now – Fábio Santos May 12 at 10:05
    
to see the problem do this 1.open plnkr 2.check the first row active checkbox 3.sort the grid using the age column 4.you will notice that checked active column is still on the first row even after sorting – Taha Amine Zeghbib May 12 at 10:23

1 Answer 1

up vote 2 down vote accepted

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

share|improve this answer
    
Thanks it work's – Taha Amine Zeghbib May 17 at 19:00
    
Accept the answer if it worked. – Kathir May 17 at 19:03
    
THANK YOU VERY MUCH FOR YOU ANSWER IT WORKED GREAT – Taha Amine Zeghbib May 19 at 8:56

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.