Hidden columns not visible in detail row

Hidden columns not visible in detail row

cagatayonculcagatayoncul 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 ?

Answers

  • jorgejansenjorgejansen Posts: 1Questions: 0Answers: 0

    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>'
    }
    ]

This discussion has been closed.