Show only two columns by select them using two dropdpwn menu?

Show only two columns by select them using two dropdpwn menu?

sweetmansweetman Posts: 4Questions: 3Answers: 0

Hi all,
I have a large table and I would like to show only two columns by selecting them using two different dropdown menus.
How can I do this with datatables?
After displaying the two choosen columns I need to compare all values in the first column with the values in the second column, for every row. I should display a "no change" text in the second column when a match is found.
Can I do this with DataTables?
TIA
tony

Answers

  • ApezdrApezdr Posts: 43Questions: 4Answers: 5

    Tony,

    You can do this with Datatables although I suspect you're going to have a jolly good time implementing this solution. With your description I can't hit the ground running to give you advice but I will say if you have the table set up (without the "no change" column) that we can have visibility to it may help us get on the track to helping you out.

  • allanallan Posts: 63,852Questions: 1Answers: 10,519 Site admin

    Use a renderer for the second column and that can output the required information.

    I'd suggest dynamically creating the table with the two columns whenever you need to draw it (i.e. the columns are selected). You could use the column hiding, but your second requirement would probably be fairly hard to implement with that approach.

    Allan

This discussion has been closed.