Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
In a custom made ApplicationEventHandler class I have a ContentService_Saving event handler that changes some values during the page saving process based some admin rules.
The code looks like this:
private void ContentService_Saving(IContentService sender, SaveEventArgs<Umbraco.Core.Models.IContent> e)
foreach (var entity in e.SavedEntities)
dynamic json = Newtonsoft.Json.JsonConvert.DeserializeObject(nestedFields);
// changing some of the json's property values
// serializing the updated json object
string serialized = Newtonsoft.Json.JsonConvert.SerializeObject(json);
// updating the Nested Content property in the page
The properties "editCaseVisibility" (checkbox) and "testTextbox" (textbox) both get refreshed in the view and show the values I've set in the event handler. However, the Nested Content field "nestedFields" does not show the newly set values. I actually have to manually refresh the whole webpage in the browser to see the new values. Why is that? And is there a solution for it?
I found this solutions
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted