how to hide order arrow on some columns not all?

how to hide order arrow on some columns not all?

ShomokhShomokh Posts: 3Questions: 2Answers: 0
edited March 2018 in Free community support

How to hide order arrow on some columns not all?

( $(document).ready(function () {
            $('#myTable').DataTable({

                "ajax": {
                    "url": "/AreaOfInterest/loaddata",
                    "type": "GET",
                    "datatype": "json"
                },
                "columns": [
                    { "data": "Name", "autoWidth": true },
                    {
//here I want to hide order arrow on this column only
                        "render": function (data, type, full, meta) {
                            return '<a style ="background:none;" class="btn btn-default btn-info glyphicon glyphicon-eye-open" href="/mycontroller/myaction/' + full.Id + '"></a>'; }
                    },
                   
                ]
            });
        });)

Answers

  • colincolin Posts: 15,235Questions: 1Answers: 2,597

    Hi Shomokh,

    Yep, take a look at this example, the second columns isn't orderable.

    Cheers,

    Colin

This discussion has been closed.