darrachequesne / spring-data-jpa-datatables

Spring Data JPA extension to work with the great jQuery plugin DataTables (https://datatables.net/)
Apache License 2.0
440 stars 174 forks source link

Column ordering problem #128

Closed twinkieio closed 3 years ago

twinkieio commented 3 years ago

Hello!

First, thanks for the library, it helps me a lot in my development.

Now my problem is sorting the column in my controller.

![dt-1](https://user-images.githubusercontent.com/71296767/122086072-5e5dda00-cdd1-11eb-9bf7-a70d5b4e5aaa.png) When doing so, the query works fine (it brings the data correctly), but the indicator of the datatables does not disappear when the search ends. ![dt-2](https://user-images.githubusercontent.com/71296767/122086146-6f0e5000-cdd1-11eb-96fa-a75679bad27b.png) If you have any advice, it is welcome. Thanks!
twinkieio commented 3 years ago

Now it works !, we had to remove input.setDraw(2);

dt-3

:)