0

I've subscribed to item:deleted event for child item and added such code

var load = $"item:load(id={parent.ID})";
Sitecore.Context.ClientPage.ClientResponse.Timer(load, 3);

If I delete child item everything is ok, but if I delete parent item firstly triggered item:deleted on child item. Parent item still exists I put its id to load string, but 3 seconds later parent item deleted too and I get error message that item is not found. Is there any way to say child item that its event is triggered inside parent event?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.