How to set the width of Modal or Inline View in case of Master-Detail relation ? August 06, 2020, 03:13:55 PM Hi,How can I set programmatic-ally or in a setup file the width of Modal or Inline View in case of Master-Detail relation ?Thanks, Catalin Quote Selected Last Edit: August 10, 2020, 03:30:57 PM by Catalin
Re: How to set the width of Modal or Inline View in case of Master-Detail relation ? Reply #1 – August 06, 2020, 06:56:02 PM @Catalin: Use "Custom CSS" Quote Selected
Re: How to set the width of Modal or Inline View in case of Master-Detail relation ? Reply #2 – August 09, 2020, 07:31:29 AM Quote from: Catalin – August 06, 2020, 03:13:55 PMHi,How can I set grammatically or in a setup file the width of Modal or Inline View in case of Master-Detail relation ?Thanks, CatalinUse below JS<script type="text/javascript"> $(document).ready(function(){if($('.ourlog').length){ $("#mylog").toggleClass('col-md-12'); } });</script> Quote Selected
Re: How to set the width of Modal or Inline View in case of Master-Detail relation ? Reply #3 – August 09, 2020, 08:17:48 AM Many thanks Arun & Machobymb! Quote Selected
Re: How to set the width of Modal or Inline View in case of Master-Detail relation ? Reply #4 – August 19, 2020, 06:54:09 PM Dear @Arun:I've tried many times to apply the solution, no succes.Can you please give me more details ?Where to place the code mentioned by you ? : <script type="text/javascript"> $(document).ready(function(){ if($('.ourlog').length){ $("#mylog").toggleClass('col-md-12'); } }); </script>Who is "#mylog" ?Many thanks in advance for help, Catalin Quote Selected
Re: How to set the width of Modal or Inline View in case of Master-Detail relation ? Reply #5 – August 25, 2020, 09:58:36 AM Any idea on how to do that ? ...I need a FULL-WIDTH "Detail-View" on-click on a "master-View" field...I have attached an image for more clarity...Thanks again in advance for any help possible, Catalin ! Quote Selected 1 Likes
Re: How to set the width of Modal or Inline View in case of Master-Detail relation ? Reply #6 – January 10, 2021, 08:51:21 AM @Catalin see this for examples about togglecase:https://api.jquery.com/toggleclass/And the code goes in custom js.What happens is that you ‘inject’ a class in the element you want to change it’s looks. Quote Selected
Re: How to set the width of Modal or Inline View in case of Master-Detail relation ? Reply #7 – January 14, 2021, 06:33:56 AM Quote from: Catalin – August 19, 2020, 06:54:09 PMDear @Arun:I've tried many times to apply the solution, no succes.Can you please give me more details ?Where to place the code mentioned by you ? : <script type="text/javascript"> $(document).ready(function(){ if($('.ourlog').length){ $("#mylog").toggleClass('col-md-12'); } }); </script>Who is "#mylog" ?Many thanks in advance for help, Catalinis this work??? Quote Selected
Re: How to set the width of Modal or Inline View in case of Master-Detail relation ? Reply #8 – January 16, 2021, 01:00:52 PM For me didn't work.Working method is:1) Edit the file "page-script.js"2) Go to section you need. e.g.: "$(document).on('click', '.open-page-inline', function(e){"3) Find line "var newRow = $('<tr class="child-row"><td colspan="' + colspan + '"><div class="row justify-content-center"><div class="col-md-6"> [...]"4) Modify: "class="col-md-6" " in "class="col-md-12"" or "class="col-md-11"" .whatever works for you !All the best, Catalin Quote Selected
Re: How to set the width of Modal or Inline View in case of Master-Detail relation ? Reply #9 – January 29, 2021, 01:43:36 PM Quote from: Catalin – January 16, 2021, 01:00:52 PMFor me didn't work.Working method is:1) Edit the file "page-script.js"2) Go to section you need. e.g.: "$(document).on('click', '.open-page-inline', function(e){"3) Find line "var newRow = $('<tr class="child-row"><td colspan="' + colspan + '"><div class="row justify-content-center"><div class="col-md-6"> [...]"4) Modify: "class="col-md-6" " in "class="col-md-12"" or "class="col-md-11"" .whatever works for you !All the best, Catalinit's work for me..thanks !!! Quote Selected