How can i disable Sorting for few columns in my table

How can i disable Sorting for few columns in my table

rajeshwarrajeshwar Posts: 3Questions: 2Answers: 0

How can i disable Sorting for few columns in my table

Replies

  • MuhaheMuhahe Posts: 25Questions: 8Answers: 2
    edited September 2014

    Hi, for this im using

    "columns": [
    {
                "data": null,         
                "orderable": false,
                "defaultContent": '',
                "type": "html"
            },
            {
                "data": null,
                "orderable": false
            },
    
            {
                "data": null
            },
    
            {
                "data": null
            }
    ]
    
    

    where each inner bracket is one column. Maybe there should work "target": but im not sure

  • rajeshwarrajeshwar Posts: 3Questions: 2Answers: 0

    Hi Muhahe that is not working...my code is and last two columns should not have ordering please mention changes

    "columns": [
    { "title":"ID"},
    { "title":"ShortName","width": "0%" },
    { "title":"Type" },
    { "title":"Category" },
    { "title":"Description"},
    { "title":"Owner" },
    { "title":"Status","ordering": false,"info":false},
    { "title":"" ,"ordering": false},
    { "title":"" ,"ordering": false}

        ]
    
  • MuhaheMuhahe Posts: 25Questions: 8Answers: 2
    edited September 2014

    try change ordering na orderable

    "columns": [ { "title":"ID"},
     { "title":"ShortName","width": "0%" },
     { "title":"Type" }, { "title":"Category" },
     { "title":"Description"}, { "title":"Owner" },
     { "title":"Status","orderable": false,"info":false},
     { "title":"" ,"orderable": false},
     { "title":"" ,"orderable": false}
    
  • rajeshwarrajeshwar Posts: 3Questions: 2Answers: 0

    That works Awesome...Thanks Muhahe!!! :)

This discussion has been closed.