exportOptions columns
exportOptions columns
 Andreas S.            
            
                Posts: 208Questions: 74Answers: 4
Andreas S.            
            
                Posts: 208Questions: 74Answers: 4            
            I try to set in the exportOption the column Number that are shown by the login level.
I tried it with this code:
                exportOptions: {
                    columns: function( idx, data, node ) { 
                        if( 4 == uLevel ) { 
                            return new Array( 0, 4, 1, 5, 7 );
                        } else {
                            return new Array( 0, );
                        }
                         
                    },
But that did not work. I think that should be the  same as columns: [ 0, 1, 2 ]
What is wrong here?
Andreas
This question has an accepted answers - jump to answer
This discussion has been closed.
            
Answers
Hi @Andreas S. ,
The function needs to return
trueorfalse, depending on whether you want that column in the export. So something like this example.Cheers,
Colin
Thank, that help me.