Announcement

Collapse
No announcement yet.

How To Hide A Nested Grid if Empty

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How To Hide A Nested Grid if Empty

    Is there a way to hide a nested grid if there are no records found?
    Last edited by kholliday; 06-12-2014, 10:07 PM.

  • #2
    I have the same requirement, but was not able to find a solution. I managed to add a separate column to the master to show the number of items in the nested grid. Not the nicest solution, but it worked for me.
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment


    • #3
      Thanks again Albert for the advice.

      Comment


      • #4
        Tal vez no sea del todo elegante pero funciona. Tienen que agregar el footer y en el evento onfooter poner lo siguiente:
        ?>
        <script>
        $("td.css_detalle_grid_line:contains('No hay registros')").remove();
        $("td.css_moto_grid_line:contains('No hay registros')").remove();

        $("td.css_mascota_grid_line:contains('No hay registros')").remove();
        $("td.css_tecnologia_grid_line:contains('No hay registros')").remove();

        $("td.css_hogar_grid_line:contains('No hay registros')").remove();
        $("td.css_bicicleta_grid_line:contains('No hay registros')").remove();
        </script>
        <?php

        Esto esta basado en el siguiente video: https://www.youtube.com/watch?v=Ev99zWTlB40

        Comment

        Working...
        X