How to change iDataSort on dynamically

How to change iDataSort on dynamically

SacVaghSacVagh Posts: 2Questions: 0Answers: 0
edited October 2013 in General
Hello,

I am new to JQuery. I have got 25 columns with long name fields in my datatable. Hence even on bigger screen user has to scroll a lot. The solution I am trying is to concatenate few columns into one column (into multiple lines in a row). But then I lose sorting capability on the concatenated columns.
After going through forums, I learnt about iDataSort property. So now I am thinking of adding a dropdown list with the concatenated column name and on value change of dropdown list, I wish to change the iDataSort property to use hidden column for sorting. I don’t know how to change this property.
I would appreciate any help on this one. If this has been resolved before, please send me the link.

Thanks,
SV

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    You cannot change iDataSort on the fly - however it sounds like you simply want to use the fnSort API method to apply the sorting you need.

    Allan
  • SacVaghSacVagh Posts: 2Questions: 0Answers: 0
    Hi Allan,

    Thanks a lot. The fnSort API method works great for me.
    Great work.

    Regards,
    Sachin Vaghela
This discussion has been closed.