mercredi 15 mars 2017

incorrect column spacing when defining data checkbox datatables

I have a datatable in which uses row grouping and a checkbox plugin from gyrocode. For any of the selected rows, I wish to return the following data in this format:

SFA Id : Goal ID : SC : Obj ID

I'm able to return the data correctly, how even I get extra spacing in the column with the checkbox.

In my data function, the following returns the correct spacing:

// This one works 
var myData1 = row[1] + ":" + row[4];
return myData1;

enter image description here

When I add the other columns I wish to retrieve, extra spacing is added as such:

// The string below will NOT render spacing correctly 
var myData2 = row[1] + ":" + row[4] + ":" + row[3] + ":" + row[6];
return myData2;

enter image description here

Here is my jfiddle with the full code. How can I achieve the spacing in myData1 when I wish to return the data in myData2?




Aucun commentaire:

Enregistrer un commentaire