Show/hide columns using complex header and also with checkbox.

Show/hide columns using complex header and also with checkbox.

abhay_mahetaabhay_maheta Posts: 2Questions: 1Answers: 0
edited April 2023 in Free community support

In this we have complex header and using this first header id or class hide some group of column that are child columns now twist is that we can't use table index as 0,1,2 it will be always consider the last header of data table and we can't find result. so using checkbox we have to identify witch is the header and it's child columns so we can hide and show it.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,512Questions: 1Answers: 10,472 Site admin

    You'd need to a link to a test page showing the issue. I don't understand why you can't use the column index.

    Allan

  • abhay_mahetaabhay_maheta Posts: 2Questions: 1Answers: 0

    Thank you for answer,

    Column index will be assigned for data table default and complex header we use so that will be not working for multiple columns that's the reason for requesting but if this will working with another way than its fine to develop.

  • allanallan Posts: 63,512Questions: 1Answers: 10,472 Site admin
    Answer ✓

    Column hiding fundamentally works from a column-selector, so as long as you can select the column you want to hide using one of those methods, then you should be able to show / hide it that way. A class name might be an option?

    Allan

  • abhay_mahetaabhay_maheta Posts: 2Questions: 1Answers: 0

    Thank you its working.

Sign In or Register to comment.