how can i dynamically add column names in dropdownlist

how can i dynamically add column names in dropdownlist

ibrahim_shazleyibrahim_shazley Posts: 2Questions: 1Answers: 0

hi, i ave data table and want to add column names to dropdown list and toggle and relocate the columns

Answers

  • kthorngrenkthorngren Posts: 21,325Questions: 26Answers: 4,949

    Use the Column Visibility option of the Buttons extension. Examples can be seen here.

    Kevin

  • ibrahim_shazleyibrahim_shazley Posts: 2Questions: 1Answers: 0

    i want to display customized dropdown and repeat it to add columns to table

  • kthorngrenkthorngren Posts: 21,325Questions: 26Answers: 4,949

    display customized dropdown

    What customizations do you want to make?

    repeat it to add columns to table

    Are you saying you want to add columns to the Datatable after it has been initialized? There is not an option to dynamically add columns to a Datatable. To change the configuration you will need to reinitialize, using either destroy or destroy(), and provide the new column configuration.

    Kevin

This discussion has been closed.