How to set autoconfigue column and define column in single data table
Hello,
You may define autoConfig for all columns of the datatable:
{ view:"datatable", autoConfig:true}
Or configure each column separately:
{ view:"datatable", columns:[
{ id:"rank", header:"", css:"rank", width:50},
{ id:"title", header:"Film title",width:200},
{ id:"year", header:"Released" , width:80},
{ id:"votes", header:"Votes", width:100}
]}
Thaks.
But I want to use both option in a single view. Is it possible?
No, it’s not possible.
But you can add extra columns in addition to the automatically generated ones after the grid has been initialized.
Can you please provide some more info how you want to use both functions in the same time ? As far as I can see they are mutual exclusive ( columns can be defined or auto detected, but not both in the same time )