Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kim Gordon 7 posts 36 karma points
    Sep 06, 2018 @ 09:31
    Kim Gordon
    0

    Can't delete Umbraco Grid if it only has one editor.

    Hello there!

    Working with Umbraco i have stumble upon what might be a bug working with the Grid Editor.

    So for starters I made a custom grid, of 3 rows, naming it as you can see on the picture 3 White Tiles.

    However, in this editor, i have chosen to ONLY have this single row configuration, to make it simple for my client to use this doctype/tab.

    Which appears like this :

    One Grid

    But.. when I try to delete this grid, it gets replaced by an empty grid.

    I can't delete the grid (only remove the content within it), and the html generated by the grid will appear no matter what I do.

    If I do a null or empty check on a deleted or freshly made grid of this sort it will off-course not return null.

    Thus I am forced to make an extra grid, which my client will not be using, but this allows the user to not use the 3 white tiles, and avoid getting the extra html into the view.

    Two Grids

    Ideally, adding one row should be optional not forced :)

  • Sven Geusens 169 posts 881 karma points c-trib
    Sep 06, 2018 @ 09:59
    Sven Geusens
    100

    Hey Kim

    Check this post for a bunch of solutions on how to check if a grid has data https://our.umbraco.com/forum/umbraco-7/using-umbraco-7/73346-check-if-umbraco-grid-is-empty

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies