filtering on the word "on" doesn't work

filtering on the word "on" doesn't work

andy9521andy9521 Posts: 1Questions: 0Answers: 0
edited August 2009 in General
I am using the zero configuration setup and having an issue with the filter not working on the word "on". Is the word "on" a special word in the zero configuration. Every other word filters with no problems.

Replies

  • allanallan Posts: 61,839Questions: 1Answers: 10,134 Site admin
    Hi andy9521,

    No - "on" has no special meaning. All DataTables is doing is looking for a string with "on" in it. It appears to work for me on the DataTables home page example: http://datatables.net/ .

    Might you have HTML with 'on' in it? If so, you can filter using only visible strings (i.e. strip the HTML) by setting the column sType to 'html'.

    Regards,
    Allan
  • JamyJamy Posts: 1Questions: 0Answers: 0
    Hi Allan - Can you please tell me how do I set the column Type to 'html'? so as to filter using only visible strings. Thanks.
  • allanallan Posts: 61,839Questions: 1Answers: 10,134 Site admin
    Hi Jamy,

    Have a look at this demo: http://datatables.net/examples/advanced_init/html_sort.html

    Regards,
    Allan
This discussion has been closed.