Filtering on some columns not working

Filtering on some columns not working

Ironwil616Ironwil616 Posts: 50Questions: 0Answers: 0
edited October 2011 in General
I've seen other posts about this issue, but none of the resolutions work for me. I don't want to mark some columns as unsearchable, so that's out. The global text filter must be able to operate on all columns.

Only some of my table's columns will have drop-down lists for column filtering. When I try to choose a filter option, there are no results, because even though my drop-down list is on column 12 (just a random example), the index of the column sent to the filter function is '0'. So unless I have a drop-down list on every column (can't do this), the indexes are all off.

The columns might also be reordered at any time, so hard-coding my specific columns for filtering isn't an option. Is there a good way to get around this issue?

Replies

  • Ironwil616Ironwil616 Posts: 50Questions: 0Answers: 0
    I can get this to work if I can tap into an event fired after column reordering. I can't just add code to the reorder function, as I need to reference datables (my specific table) to reset the index of the drop-down filters. I can't just use the draw callback, as it doesn't fire when the column is dropped into a new location, and this would only yield a subset of possible values in any case.

    Any advice?
  • Ironwil616Ironwil616 Posts: 50Questions: 0Answers: 0
    Actually, it appears that filtering and sorting both break when reordering columns. For now, I'm going to drop dynamic column reordering until I can find a fix for this.
This discussion has been closed.