farizluqman / jquery-datatables-column-filter

Automatically exported from code.google.com/p/jquery-datatables-column-filter
0 stars 0 forks source link

sValue bug when using select filters, data comes from ajaxSource #62

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Using a select type

What is the expected output? What do you see instead?
Would be a select filled with the options, I see a JS error instead.

What version of the product are you using? On what operating system?
1.4.7 and 1.9 DataTables (tested on all browsers, across all systems)

Please provide any additional information below:

What i have is ajax-source loading and I'm using aoColumns with mDataProp to 
say what goes where.

Then I just load columnFilter, worked fine, 'till i went and decided I wanted a 
'select' field.
It doesn't fill the select, and pops this error:

"sValue is undefined"
At line 77 of the plug-in:
"if (bIgnoreEmpty == true && sValue.length == 0) continue;"

Thanks for any help!

The test-case: http://andrecatita.com/databug/tarifarios.htm

Original issue reported on code.google.com by andre.in...@gmail.com on 26 Mar 2012 at 8:41

GoogleCodeExporter commented 9 years ago
This is discussed here: 
http://datatables.net/forums/discussion/9178/columnfilter-select-bug#Item_2 . I 
think the fix is simply to update to the updated fnGetColumnData plug-in for 
DataTables that is now on the DataTables site.

Original comment by allan.ja...@gmail.com on 26 Mar 2012 at 1:35

GoogleCodeExporter commented 9 years ago
This fix works for me too.
Why it is still not in repository?

Original comment by Sergiy.Borodych on 14 Jan 2013 at 3:36