Replace td text with comanche responsive datatable

Replace td text with comanche responsive datatable

GiovanniGiovanni Posts: 9Questions: 2Answers: 0
edited October 2013 in General
Hi all, I am using Responsive data tables with comanche plug-in that collpase columns in small screens. I want to replace text "_" with blank char of every cell of a specific column. If using following code inside fnRawCallBack function

[quote]
var strTeam = (aData[3]).replace(/\_/g, ' ');
$(this.fnGetTds(nRow)[3]).text(strTeam);
[/quote]

it works correctly, when the column is not collapsed. But when the column collapse, because the table is displayed in a small screen , the string appears again with "_" char.

I am loading data from a JSON file: how can I replace text before displaying it on table?

Thanks

Giovanni

Replies

This discussion has been closed.