bSortable problem

bSortable problem

davisvasconcellosdavisvasconcellos Posts: 12Questions: 2Answers: 0
edited March 2013 in General
hi,
if i set bSortable: false in first column , all others columns not sortable.
if i set bsortable any other column words fine.

in first column mouse click is disabled, in others click is enable but not work.

All:
"aoColumns": [
{"bSortable": false},
null,
null,
null,
null,
null,
],


in firebug log is the same response
FIRST DISABLE PROBLEM
bSearchable_0 true
bSearchable_1 true
bSearchable_2 true
bSearchable_3 true
bSearchable_4 true
bSearchable_5 true
bSortable_0 false
bSortable_1 true
bSortable_2 true
bSortable_3 true
bSortable_4 true
bSortable_5 true
iColumns 6
iDisplayLength 10
iDisplayStart 0
iSortCol_0 1
iSortingCols 1
sColumns
sEcho 6
sSearch

SECOND or + FINE
bSearchable_0 true
bSearchable_1 true
bSearchable_2 true
bSearchable_3 true
bSearchable_4 true
bSearchable_5 true
bSortable_0 true
bSortable_1 false
bSortable_2 true
bSortable_3 true
bSortable_4 true
bSortable_5 true
iColumns 6
iDisplayLength 10
iDisplayStart 0
iSortCol_0 0
iSortingCols 1
sColumns
sEcho 2
sSearch



i am wrong?

thans

Davis

Replies

  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin
    Are you saying that the first column is sorted even although you disable it? You need to change aaSorting as well since its default is to sort on the first column.

    Failing that, - please link to a test case.

    Allan
  • davisvasconcellosdavisvasconcellos Posts: 12Questions: 2Answers: 0
    Table Columns:
    Picture | Name | email

    Case-1
    "aoColumns": [
    {"bSortable": false},
    null,
    null,
    ],

    Column picture - mouse click is disabled
    Columns name - Click is enabled , but anything happens.
    Columns email - Click is enabled , but anything happens.



    Case-2
    "aoColumns": [
    null,
    {"bSortable": false},
    null,
    ],

    Column picture - click is enabled and sortable function works fine.
    Columns name -mouse click is disabled and not sortable.
    Columns email - click is enabled and sortable function works fine.



    i took this setup only for a test in others columns.
    I dont need the first picture columm be sortable.


    Very Thanks
  • davisvasconcellosdavisvasconcellos Posts: 12Questions: 2Answers: 0
    thanks for all you reports and patience with my bad english.

    ===============================================================
    Thank you, your order has been placed.
    We've sent you an e-mail confirmation. New Sign up for delivery updates by text for this and future orders.
    Order Number: 026-7985908-9754714
    1 item will be delivered to Allan Jardine from Amazon EU Sàrl. Estimated delivery: 20 Mar 2013 - 22 Mar 2013
    ===============================================================
  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin
    The only thing I notice as a problem in your code there is that you have a trailing comma in the array. That should be removed.

    Having said that, here is an example with the first column not sortable and the other columns still working: http://live.datatables.net/agepoz/edit#javascript,html

    So I'm afraid I'd still need a link to a test case to see what the problem is.

    Thanks for the Amazon order - I'll look forward to it.

    Regards,
    Allan
  • davisvasconcellosdavisvasconcellos Posts: 12Questions: 2Answers: 0
    hi Allan,

    removed the comma from the end but the problem persists.
    this is the test address. but you need to login first and then access the link because it is an intranet.

    first
    www.primercontrol.com.br/demo
    user: vader
    pass: 1234

    after
    http://www.primercontrol.com.br/system/cadrecursos_teste/

    I hope it helps.

    thank you very much
This discussion has been closed.