Responsive with Child Rows

Responsive with Child Rows

Isaac AraujoIsaac Araujo Posts: 4Questions: 1Answers: 0

Guys, I implemented the child line function in my datatables, that is, with the normal screen, a + button appears to show more information.

However, I also use the Responsive option, so when the screen is reduced to the mobile version, the two buttons are displayed and there is a conflict.

How can I reconcile the use of the two?

Answers

  • Isaac AraujoIsaac Araujo Posts: 4Questions: 1Answers: 0

    This is the normal mode display

    And this is the ebixition with the responsive mode

  • zgoforthzgoforth Posts: 493Questions: 98Answers: 2

    Can you please implement a test case

  • Isaac AraujoIsaac Araujo Posts: 4Questions: 1Answers: 0

    As well?

    I also thought that the columns that go from the table layout, could go to a child rows.

    However, I don't know how to do it

  • 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

  • kthorngrenkthorngren Posts: 21,173Questions: 26Answers: 4,923

    The Compatibility Matrix shows this for Responsive and Child Rows:

    Responsive's modal display option should be enabled if used with child rows, as the default display method is to use child rows, which would override 'user space' use of child rows.

    Looks like you are using Bootstrap. Here is the Bootstrap 4 modal example.

    Kevin

  • Isaac AraujoIsaac Araujo Posts: 4Questions: 1Answers: 0

    @kthorngren
    The modal works, but I think I was not very clear.

    I wish that the two buttons do not appear, that only remain either the green (child) or the blue of the responsive, and when clicking on the button, show both the child rows as well as the columns that have been shrunk due to the responsiveness

  • kthorngrenkthorngren Posts: 21,173Questions: 26Answers: 4,923

    Ok. I would look at using the responsive-display and leaving the Responsive button. Remove the details-control class (child details button) from the column. In the responsive-display you can toggle the child using row().child().show() or row().child().hide() based on the showHide flag.

    Kevin

This discussion has been closed.