Copied to clipboard

Flag this post as spam?

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


  • John McKillip 33 posts 116 karma points
    Apr 24, 2015 @ 21:20
    John McKillip
    0

    Populating an item in the grid using the content picker, then deleting it does not set the JSON object property back to null.

    First off, I think this is an awesome data type. Thank you for this. 

    I ran into a weird issue today. I am using a grid that has a column for an image (media picker), one for a caption (text box) and one for a related content item (content picker). If a related content item has never been chosen for a row, I can check if it is empty or not by != null.

    If I add an item with the content picker, save it, then delete it, that check doesn't work anymore because the json property is not null again, it is equal to an empty string. I ended up having to write a bunch of extra code to get everything to work like it should. It seems like it would make more sense to set it back to null if it gets deleted. 

     

  • gilad 185 posts 425 karma points
    Apr 25, 2015 @ 07:15
    gilad
    0

    Hi John.

    I'm glad you found this data type useful.

    What version of umbraco & u7 grid data type do you use?

    I just tried with umbraco - 7.2 , gdt - 1.2 , and and have success with checking for != "" right after the item was added and also after deleting a content.

     

  • John McKillip 33 posts 116 karma points
    Apr 27, 2015 @ 15:25
    John McKillip
    0

    Hi Gilad,

    Sorry, I should have posted that info. I am using Umbraco 7.2.4 with U& Grid Data Type v 1.2. 

    Thanks!

    -John

Please Sign in or register to post replies

Write your reply to:

Draft