Get filter state after setting fnFilter( 'string' ); ?
Get filter state after setting fnFilter( 'string' ); ?
Curious if there is an obvious solution to this that I am missing.
I use .fnFilter('string') to set a filter to a table based on a click event to a graph. Setting the filter works just fine. When someone clicks on the same graph element I would like to remove the filter by checking if the new filter string is the same as the last one. In order to know that this is the same element, I need to either store or get the filter state. I checked .fnSettings(), but did not see any attributes relevant to the state of the table's filter. How would one do this?
My ideal solution is:
[code]
var filter_state = oTable.fnGetFilterState()
filter_state = { filter: 'string', column: 0, ... }
[/code]
I use .fnFilter('string') to set a filter to a table based on a click event to a graph. Setting the filter works just fine. When someone clicks on the same graph element I would like to remove the filter by checking if the new filter string is the same as the last one. In order to know that this is the same element, I need to either store or get the filter state. I checked .fnSettings(), but did not see any attributes relevant to the state of the table's filter. How would one do this?
My ideal solution is:
[code]
var filter_state = oTable.fnGetFilterState()
filter_state = { filter: 'string', column: 0, ... }
[/code]
This discussion has been closed.
Replies
Allan