nested table

nested table

OhunjonOhunjon Posts: 9Questions: 5Answers: 0

Hello everybody. I am learning also using this plugin. who can take me any example to use it with custom nested table. how can i to get access to nested table

Answers

  • colincolin Posts: 3,648Questions: 0Answers: 645

    Not sure if you mean child rows, if so, this page may help. If not, please can you provide more details.

  • OhunjonOhunjon Posts: 9Questions: 5Answers: 0

    thans for answer. but i mean that: I have ready table with data and some rows has nested table with data too. i want here use DataTable and get access to nested table. here is structure almost the same but my data in table ready.

  • EnterTheBlackDragonEnterTheBlackDragon Posts: 2Questions: 0Answers: 0

    So I've created an application that has nested tables which means that I have a primary table that I'm retrieving using 1 ajax call that is referencing a web service, this web service references a simple stored procedure. This stored procedure returns my "Primary Table" which is loaded within the DataTable. Within the primary function which returns the primary table, there is another function nestedTable that is called, you must declare var table = $('#mydatatable').DataTable(); Then create the event for on('click', function() just as the example displays. But within the format(d) example instead of using hard coded values, you must again use another ajax call to another stored procedure which takes in an input parameter which must be the ID or identity you are using in order to tie the primary and nested tables together. You also need to use a Plus.png, and Minus.png as icons that you can use to toggle between events just like in the sample. If you need a more thorough example let me know, be more than willing to display my code.

Sign In or Register to comment.