How sort a column after fnRender func ?

How sort a column after fnRender func ?

pakypaky Posts: 106Questions: 0Answers: 0
edited August 2012 in DataTables 1.9
Hi my server-side table it's all ok, only one problem sort feature, only on my first coumn sort works, on other move the rows but with no sense sort order !!!
How can I solve it ?
thanks ;)

Replies

  • pakypaky Posts: 106Questions: 0Answers: 0
    edited August 2012
    strange ... for order my third column, I must click on sixth column.... help me!! :)

    After debug table, in "Full column detail" I read this:
    [code]
    {
    "aDataSort": [3],
    "asSorting": ["asc", "desc"],
    "bSearchable": true,
    "bSortable": true,
    "bUseRendered": true,
    "bVisible": true,
    "_bAutoType": true,
    "fnCreatedCell": null,
    "fnGetData": "function (b) {
    return b[a];
    }",
    "fnRender": "function (o, val) {
    return getFisioterapista(o.aData[8], o.aData[9]);
    }",
    "fnSetData": "function (b, d) {
    b[a] = d;
    }",
    "mDataProp": 3,
    "nTh": "



    TDR
    ",
    "nTf": null,
    "sClass": "",
    "sContentPadding": "",
    "sDefaultContent": null,
    "sName": "",
    "sSortDataType": "std",
    "sSortingClass": "sorting",
    "sSortingClassJUI": "",
    "sTitle": "



    TDR
    ",
    "sType": "html",
    "sWidth": "120px",
    "sWidthOrig": "120px",
    "iDataSort": -1,
    "sCellType": "td",
    "aTargets": [3]
    }
    [/code]
  • allanallan Posts: 63,700Questions: 1Answers: 10,501 Site admin
    That looks fairly sensible - I think we would need to see the working test case to help diagnose the problem.

    Allan
  • pakypaky Posts: 106Questions: 0Answers: 0
    Hi Allan, working test ? How can do it ? tnx
  • allanallan Posts: 63,700Questions: 1Answers: 10,501 Site admin
    Just give me a link to the page :-)
This discussion has been closed.