How to always same details after reorder with colReorder
How to always same details after reorder with colReorder
Hi everyone,
first thank you for that crazy plug-in, that I'm working on for few months now.
These days, I'm trying to get some details from my rows, however I added the colReorder system, everything worked well separately, but now, everything's a mess : my data "printed" in my detail box will always change, depending on the order of my columns.
It seems logical, indeed, having a look at that code :
[code]
function fnFormatDetails ( oTable, nTr )
{
var aData = oTable.fnGetData( nTr );
var sOut = '';
sOut += 'Rendering engine:'+aData[1]+' '+aData[4]+'';
sOut += 'Link to source:Could provide a link here';
sOut += 'Extra info:And any further details here (images etc)';
sOut += '';
return sOut;
}
[/code]
The data are taken from the index of the column.
I have no idea on how to keep the first statement of the table coming from my HTML.
Please HELP ME !
PS : For me, the colReorder is not important, what I only want is to use the aiOrder, to change the order of the column at the initialization.
Is there a way to do only an initialization of the column order without having dynamical reorder (or client-side process).
first thank you for that crazy plug-in, that I'm working on for few months now.
These days, I'm trying to get some details from my rows, however I added the colReorder system, everything worked well separately, but now, everything's a mess : my data "printed" in my detail box will always change, depending on the order of my columns.
It seems logical, indeed, having a look at that code :
[code]
function fnFormatDetails ( oTable, nTr )
{
var aData = oTable.fnGetData( nTr );
var sOut = '';
sOut += 'Rendering engine:'+aData[1]+' '+aData[4]+'';
sOut += 'Link to source:Could provide a link here';
sOut += 'Extra info:And any further details here (images etc)';
sOut += '';
return sOut;
}
[/code]
The data are taken from the index of the column.
I have no idea on how to keep the first statement of the table coming from my HTML.
Please HELP ME !
PS : For me, the colReorder is not important, what I only want is to use the aiOrder, to change the order of the column at the initialization.
Is there a way to do only an initialization of the column order without having dynamical reorder (or client-side process).
This discussion has been closed.
Replies
I've exactly the same pb to resolve. Does anybody have an idea ?
Thanks