Enable searching on columns altered with mRender
Enable searching on columns altered with mRender
JerryRig
Posts: 1Questions: 1Answers: 0
I have a table that has server side processing. I'm using mRender to turn 2 of the columns into links. This is working fine. The only problem I have is, once they are turned into links I can no longer search for them. Is there a way to enable searching on those columns? Here's my code.
$("#FailedLoginLogTable").dataTable({
"serverSide" : true,
"processing" : true,
"bServerSide" : true,
"ajax" : {
"url" : "serverSideProcessingFailedLogin.php",
"data" : {
"EPFunction" : "Login",
"Flag" : 2,
"FailedLogin" : true
}
},
"aoColumns" : [
{"sTitle" : "Date"},
{"sTitle" : "IP", "mData" : null, "mRender" : function(data, type, full){
return "<a href='ipoverview.php?ip="+data[1]+"'>"+data[1]+"</a>";
}},
{"sTitle" : "User Agent String"},
{"sTitle" : "User Name", "mData" : null, "mRender" : function(data, type, full){
return "<a href='useroverview.php?user="+data[3]+"'>"+data[3]+"</a>";
}}
]
});
This discussion has been closed.