Skip to content

ColumnFilter doesn't work with columns with hyperlink #167

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
GoogleCodeExporter opened this issue Sep 2, 2015 · 1 comment
Open

ColumnFilter doesn't work with columns with hyperlink #167

GoogleCodeExporter opened this issue Sep 2, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?

Here is my code;

<script>

    var dataSetString = $('#hiddenData').attr('value');
    var dataSet = eval(dataSetString);

    $(document).ready(function() {

       var table = $('#example').dataTable( {

            "data": dataSet,
            "aoColumns": [
                        { "title": "Id"},
                        { "title": "Issue Date" },
                        { "title": "Expiry Date" },
                        { "title": "Area" }
            ],
            "columnDefs": [
                           //title column has hyperlinks
                           {
                               "render": function ( data, type, row ) {
                                   return '<a href="#{request.contextPath}/module/misc/module/search/titleDetails.jsf?titleId=' + data + '"><i class="fa fa-external-link"></i> ' + data + '</a>' ;
                               },
                               "targets": 0
                           }
            ],
            "order": [[ 0, "desc" ]]
        } );

        table.columnFilter({ sPlaceHolder: "head:before",
            aoColumns: [ {type: "number"},
                         {type: "number"},
                         {type: "number"},
                         {type: "number"}


                       ]

        });

    } );

</script>

What is the expected output? What do you see instead?
Hyperlink (for column Id) navigates to expected page but filter for this 
particular column (ID) doesn't work.

What version of the product are you using? On what operating system?
jquery.dataTables.columnFilter.js
* Version:     1.5.6.

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 2 Dec 2014 at 11:44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant