Modal Show Details from another table

Modal Show Details from another table

crije22crije22 Posts: 7Questions: 3Answers: 0

I'm new to the datatable plugin, my doubt is that in a table I need to show a modal with data that comes from another table.

so that I show the result of the selected row is equal to the row of the other table

Thank you very much for all the contributions

This question has an accepted answers - jump to answer

Answers

  • crije22crije22 Posts: 7Questions: 3Answers: 0
    edited August 2018

    Sorry friends, the question is how show to show in a modal data that is not in columns but I receive with a controller?
    Thanks for all the contributions

  • colincolin Posts: 15,240Questions: 1Answers: 2,599
    Answer ✓

    Hi @crije22 ,

    You would need to have a click event handler on the rows, which initiates an Ajax call to a server script to get the necessary data for the modal. While this example isn't quite what you're after, this is just doing child rows, it demonstrates the clicking of rows - you would then modify the code in the event handler to initiate the Ajax call.

    Hope that helps,

    Cheers,

    Colin

  • crije22crije22 Posts: 7Questions: 3Answers: 0

    @colin thank you very much
    Your answer served as an example to solve my problem!!

This discussion has been closed.