Cascading filters in dataTable issue

Cascading filters in dataTable issue

amarsh09amarsh09 Posts: 2Questions: 1Answers: 0

Hi,

I am trying to use the cascade filter following an example here: https://live.datatables.net/gejojiqu/1/edit

The problem however is that my table data have hyphen(-) in them. So selecting a filter option that has hyphen results in the Select field being empty, although it does do the filtering. The issue is also happening in the example linked above. If you select the date or salary filter, the filtering works but the Select dropdown in that column is empty.

This probably has to do with the following line
if ( currSearch ) {
select.val( currSearch.substring(1, currSearch.length-1) );
}
where val is unable to set select because of special characters in the string. Is there a workaround for this ?

Answers

Sign In or Register to comment.