CHECKBOX COLUMN

CHECKBOX COLUMN

hugomeanahugomeana Posts: 18Questions: 0Answers: 0
edited February 2013 in General
Hello,

I have this columns:
[code]
"mRender": function (val, type, row) {

if(val == 't')
var sReturn = '';
else
var sReturn = '';

return sReturn;
}
[/code]

But when I use the individual filter, I write F or T and the filter doesn´t work...
Why??

Thank you!

Replies

  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin
    Because the filter removes HTML automatically. You probably want to use orthogonal data as described here: http://datatables.net/blog/Orthogonal_data (although mRender as you are since it is easier). Just add an `if` condition for `if ( type ==='filter' || type === 'type' )` and return `t` or `f` as needed.

    Allan
This discussion has been closed.