Hidden columns not visible in detail row
Hidden columns not visible in detail row
cagatayoncul
Posts: 1Questions: 1Answers: 0
Hi, i updated my libs to lates release, i want to show hidden columns in detail row.
i tried a few options but getting problem with colvis or hidden column on detail row.
if i use this
{data: 'email', name: 'email', className: 'none'}, i cant show this columns with colvis button.
i tried this
{data: 'email', name: 'email', visible:false}, and i cant show on detail row.
How can i fix this ?
This discussion has been closed.
Answers
Hi,
Create the column with the "hidden" class as shown below.
columns: [
{
data: 'Id',
title: 'Id',
className: "hidden"
},
{ data: 'Name', title: 'Nome' },
{ data: 'Office', title: 'Profissão' },
{ data: 'Position', title: 'Escritório' },
{ data: 'Salary', title: 'Salário' },
{ data: 'StartDate', title: 'Contratada' },
{
data: null,
className: "center",
defaultContent: '<a href="" class="editor_edit">Edit</a> / <a href="" class="editor_remove">Delete</a>'
}
]