datatable going into alphabetical order when you start to search (jQuery code) tried to find bsort

datatable going into alphabetical order when you start to search (jQuery code) tried to find bsort

PaulFreeWebsPaulFreeWebs Posts: 63Questions: 4Answers: 1
edited September 2013 in DataTables 1.9
my friend is using datatables
THE ISSUE:
I want disable sorting so it organizes by OUR sorting, I also want to default the records to 150, and not let it be changed. I edited the js and it "broke" the sorting, but when you searched something then removed the search, sorting would come back, so I need an efficient way to do this.
pastebin below as this code is to long
http://pastebin.com/CknGPGkX

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    I don't quite understand I'm afraid. To disable sorting and fix page length at 150, would you not just use:

    [code]
    bLengthChange: false,
    iDisplayLength: 150,
    bSort: false
    [/code]

    Does that not work?

    Allan
  • PaulFreeWebsPaulFreeWebs Posts: 63Questions: 4Answers: 1
    my friend is not on right now, and sadly i dont have access to edit it so when he comes on i will ask him to try it, thanks in advanced
  • PaulFreeWebsPaulFreeWebs Posts: 63Questions: 4Answers: 1
    edited September 2013
    edit: we changed bSort:null and bSort:!0 to bsort:false and that has fixed the problem, thanks for your help
This discussion has been closed.