Grouping columns with array as columns definition
Grouping columns with array as columns definition
Is it possible?
My datatables use an array as definition for columns, for example:
[code] "aoColumns": [
{ "sTitle": "Engine" },
{ "sTitle": "Browser" },
{ "sTitle": "Platform" },
{ "sTitle": "Version", "sClass": "center" },
{
"sTitle": "Grade",
"sClass": "center",
"fnRender": function(obj) {
var sReturn = obj.aData[ obj.iDataColumn ];
if ( sReturn == "A" ) {
sReturn = "A";
}
return sReturn;
}
}[/code]
Can i group columns with usage of aoColumns or the only possibility is to to use html header?
Thanks.
Diego
My datatables use an array as definition for columns, for example:
[code] "aoColumns": [
{ "sTitle": "Engine" },
{ "sTitle": "Browser" },
{ "sTitle": "Platform" },
{ "sTitle": "Version", "sClass": "center" },
{
"sTitle": "Grade",
"sClass": "center",
"fnRender": function(obj) {
var sReturn = obj.aData[ obj.iDataColumn ];
if ( sReturn == "A" ) {
sReturn = "A";
}
return sReturn;
}
}[/code]
Can i group columns with usage of aoColumns or the only possibility is to to use html header?
Thanks.
Diego
This discussion has been closed.
Replies
Allan