Filter was not working after reordering columns

Filter was not working after reordering columns

jayeshgoyanijayeshgoyani Posts: 1Questions: 1Answers: 0

I have added my code into given below JSFiddle.
http://jsfiddle.net/s8JmF/521/

Before column ordering filter is working fine but after that filter is not working.

Steps to reproduce:-
1. Please check that filter is working fine in the 'office' column.
2. Reorder the Office column with Position column
3. After reordering the filter was not working in the 'office' column.

Answers

  • jr42.gordonjr42.gordon Posts: 305Questions: 2Answers: 49

    When the init was run, the columns().every performed that logic on the current position of the columns. So variable column in your change event is tied to the column.

    Check out updated Fiddle.
    http://jsfiddle.net/s8JmF/522/

  • jayeshgoyanijayeshgoyani Posts: 1Questions: 1Answers: 0

    The solution, which was given by you, is not working.
    We have resolved the issue for reference please check the below demo for reference.
    http://jsfiddle.net/s8JmF/524/

  • jr42.gordonjr42.gordon Posts: 305Questions: 2Answers: 49

    Glad you got it to work. I actually did not provide a solution, only to show you what column was in the change event handler.

This discussion has been closed.