You need to sign in to do that
Don't have an account?

Table: table inside each row -Jquery
Hi All,
I have a requirement. I need to display another table inside each row.
The folowing is the sample code I'm trying and also attaching the output.

I need a table like as shown in below screenshot which should have all functionalities like pagenation,auto suggestion search etc.. from above code.

can some one please help me.
***Any help is really appreaciated.
Thanks,
Naveen.
I have a requirement. I need to display another table inside each row.
The folowing is the sample code I'm trying and also attaching the output.
<apex:page sidebar="false" standardController="Account" > <apex:includeScript value="{!$Resource.Jquery}"/> <apex:stylesheet value="https://cdn.datatables.net/1.10.11/css/jquery.dataTables.min.css"/> <apex:includeScript value="https://cdn.datatables.net/1.10.11/js/jquery.dataTables.min.js"/> <script> $(document).ready(function() { $('table.display').DataTable(); } ); </script> <style> div.dataTables_wrapper { margin-bottom: 3em; } </style> <apex:form > <apex:pageblock > <apex:pageBlockButtons > <apex:commandButton value="SSSSSSS"/> </apex:pageBlockButtons> <table id="" class="display" cellspacing="0" width="100%"> <thead> <tr> <th>Name</th> <th>Position</th> <th>Office</th> <th>Age</th> <th>Salary</th> </tr> </thead> <apex:repeat value="{!Account.Opportunities}" var="opp" > <tr> <td><apex:inputCheckbox /></td> <td>{!opp.name}</td> <td>System Architect</td> <td>Edinburgh</td> <td>61</td> </tr> </apex:repeat> </table> </apex:pageblock> </apex:form> </apex:page>
I need a table like as shown in below screenshot which should have all functionalities like pagenation,auto suggestion search etc.. from above code.
can some one please help me.
***Any help is really appreaciated.
Thanks,
Naveen.
Please find the attached sample code to accomplish your requirement:
Able to dispaly table inside each row. But pagenation is not working.
You can find same in my second screen shot in above post.
Thanks,
Naveen.
You will have to use below mentioned code within document.ready:
I tried using above code. But its not giving proper output. Please let me know what extra changes to be done. here is my code.
Thanks in advance.
Naveen
I made some edits in your code. Please refer them and let us know if you face any issues.
Here is the output from above code. This is also not giving proper output.
Where exacly you are facing the issue? Can you please try the pagination functionality with more than 50 records?