Can you tell us, Is it possible, Shall we integrate the following options in a single dataTable?

Can you tell us, Is it possible, Shall we integrate the following options in a single dataTable?

rajaigcerajaigce Posts: 4Questions: 3Answers: 0

Is it possible, Shall we integrate the following options in a single dataTable?
The options are column reordering, column resizing, individual column filter and dynamic column show / hide?

Answers

  • colincolin Posts: 15,163Questions: 1Answers: 2,588
    edited March 2019

    Hi @rajaigce ,

    Yep, you can mix options.

    column reordering

    See ColReorder

    column resizing

    This isn't possible. The columns will fit the data. If the data changes, you can force a recalculation with an draw(), but you can't drag column widths as you would in Excel for example.

    individual column filter

    See here.

    dynamic column show / hide

    See here.

    Cheers,

    Colin

  • rajaigcerajaigce Posts: 4Questions: 3Answers: 0

    How to concatenate all above mentioned functionality in one dataTable?

  • colincolin Posts: 15,163Questions: 1Answers: 2,588

    Hi @rajaigce ,

    You just join them together in the initialisation object, for example, this table here have both dynamic column show/hide and ColReorder .

    Cheers,

    Colin

This discussion has been closed.