Modal to display 2 rows

Modal to display 2 rows

sini180sini180 Posts: 4Questions: 2Answers: 0

Hello, I have been using DataTables for a while now and is fantastic but have a query which I am unable to resolve. My data is in pairs (odd + even) in a repeating pattern. Using a responsive table, the modal shows whatever column you click (eg, row 1) but I would like to show the pair (1+2 or 3+4, 5+6 etc). If the odd row is clicked it shows the even number following also and if the even row is clicked it shows the previous odd row in the modal.

Is this possible to achieve?

Thanks in advance.

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

  • sini180sini180 Posts: 4Questions: 2Answers: 0

    Sorry for the delay, been very busy. It's not really an issue but an addition to what's available.

    Modal shows all data from the row in a responsive table. I want to show two rows of data.

    Thanks in advance.

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    I think you need to re-read Colin's post.

This discussion has been closed.