how to create example testcase from these examples given in datatables

how to create example testcase from these examples given in datatables

umaeswaraumaeswara Posts: 69Questions: 13Answers: 0

for example I want to create a testcase which is a clone of this -- https://datatables.net/examples/advanced_init/complex_header.html

i want to add individual column search for this example
and also add individual column hide/show toggle for this example.
do you already have an example code for this scenario?

thanks,
Uma-

Answers

  • colincolin Posts: 15,143Questions: 1Answers: 2,586

    There's not an example with all that in. With those complex headers with rowspan and colspan you'll need to have some logic when hiding and showing then to make sure labels and alignment work as expected.

    The searching is demonstrated here, and the visibility here.

    Colin

  • umaeswaraumaeswara Posts: 69Questions: 13Answers: 0

    Hi Colin,

    I have created the example testcase here, i have included colspan and also the search fields. it is working. but search fields are at footer, i want them on top. is there a way to get this testcase changed to get the search on top?
    And i was trying to include colvis, but unable to do so. please can you advise on how i include column visibility? it need not be at sub-level, there should be a provision to hide HR Information, Contact .

  • umaeswaraumaeswara Posts: 69Questions: 13Answers: 0
  • umaeswaraumaeswara Posts: 69Questions: 13Answers: 0

    Hi Colin,
    i am able to create the column toggle way of show/hide http://live.datatables.net/qutizisu/1/edit

    thanks,
    Uma-

  • colincolin Posts: 15,143Questions: 1Answers: 2,586

    Yep, you would adjust the code like this to get the searches in the headers: http://live.datatables.net/qutizisu/2/edit

    Colin

This discussion has been closed.