DataCCIW

Report Grid From SPROC Adjustments

Oct 1st, 2020 (edited)
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2. $( document ).ready(function() {
  3.  
  4. if ($("tbody:contains('Drag a column header')").eq(1).length) // Check to see if the report grid is present
  5. {
  6.     if ($('[id$="buttonPanel_"]').length) // this selector works for lists
  7.     {
  8.       $('[id$="buttonPanel_"]').clone().appendTo($("tbody:contains('Drag a column header')").eq(1));
  9.     }
  10.  
  11.     if ($('[id$="buttonPanel_dgTable"]').length) // this selector works for Report Grid From SPROCs
  12.     {
  13.       $('[id$="buttonPanel_dgTable"]').clone().appendTo($("tbody:contains('Drag a column header')").eq(1));
  14.     }
  15. }
  16. }
  17. );
  18.  
  19. </script>
  20. <style>
  21. .buttonPanel, .rgWrap.rgInfoPart
  22. {
  23. float: left !important;
  24. }
  25. .buttonPanel a
  26. {
  27.     margin: 8px;
  28. }
  29. </style>
Add Comment
Please, Sign In to add comment