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.
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.
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.
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.
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
is working on a reply...