Guest User

Untitled

a guest
May 23rd, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | None | 0 0
  1. <apex:page controller="wrapperclass2">
  2. <apex:includeScript value="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"/>
  3. <apex:includescript value=" //cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js" />
  4. <apex:stylesheet value="//cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css" />
  5.  
  6.  
  7.  
  8. <script>
  9. $(document).ready(function() {
  10.  
  11. $('table.dataTable').dataTable({});
  12.  
  13. $('.memo').closest('tr').find('.gold').click(function() {
  14. $(this).closest('tr').find('.gold').not(this).prop('checked', false);
  15. });
  16.  
  17. $('.memo').closest('tr').find('.first').click(function() {
  18. $(this).closest('tr').find('.second').prop('checked', false);
  19. });
  20.  
  21. $('.memo').closest('tr').find('.second').click(function() {
  22. $(this).closest('tr').find('.first').prop('checked', false);
  23. });
  24. });
  25. </script>
  26.  
  27.  
  28. <apex:pageBlock >
  29. <apex:form >
  30. <apex:pageBlockTable value="{!lstAccWrapper}" id="accountId" var="a1" styleClass="dataTable">
  31.  
  32. <apex:column styleClass="" headerValue="Name">
  33. <apex:outputText value="{!a1.Name}" />
  34. </apex:column>
  35.  
  36. <apex:column styleClass="memo" headerValue=" Gold">
  37. <apex:inputCheckbox value="{!a1.slaG}" styleClass="first" id="gggold"/>
  38. </apex:column>
  39. <apex:column styleClass="memo" headerValue="Silver">
  40. <apex:inputCheckbox value="{!a1.slaS}" styleClass="gold"/>
  41. </apex:column>
  42. <apex:column styleClass="memo" headerValue="Platinum">
  43. <apex:inputCheckbox value="{!a1.slaP}" styleClass="gold"/>
  44. </apex:column>
  45. <apex:column styleClass="memo" headerValue="Bonze">
  46. <apex:inputCheckbox value="{!a1.slaB}" styleClass="gold second" />
  47. </apex:column>
  48.  
  49. <apex:column styleClass="memo" headerValue="SLA Bonddze">
  50. <apex:inputCheckbox value="{!a1.slaRAdioB}" styleClass="gold second"/>
  51. </apex:column>
  52. <apex:column styleClass="memo" headerValue="test">
  53. <apex:inputCheckbox value="{!test}" styleClass="gold second"/>
  54. </apex:column>
  55.  
  56. </apex:pageBlockTable>
  57. </apex:form>
  58. </apex:pageBlock>
Add Comment
Please, Sign In to add comment