Hi everyone. I've a problem with SortedFilteredLis...
# tornadofx
e
Hi everyone. I've a problem with SortedFilteredList. I have a textfield for filtering a table, that works fine. Also while not filtering the sorting works find. However if I filter the table, then sort it (clicking a column header) and then clearing the filter-textfield, the table stays filtered. The filtered-out rows do not reappear. I created a Gist to showcase this. Maybe someone can give me a hint what I'm doing wrong here, or is this a bug with SortedFilteredList? https://gist.github.com/elexx/f87b0ee4b787b9b17fe72400894b94ff
Fixed it. I need to overwrite the default sortPolicy with
sortPolicy = Callback { true}
, because TornadoFx SortedFilteredList handles the whole sorting and filtering itself, which conflicts with the sorting of JavaFX TableView