Try our conversational search powered by Generative AI!

Property value doesn't update in view after publish

Vote:
 

I've created a dojo widget for handling images in edit mode.
I save all the images as a string (json) and add them as a List<JsonImages> to the model in the controller. In the view I use a foreach.


When I add a new image in forms mode and then go back to on-page editing without publishing - everything is ok.
In other words the view is updated with the new image.

But when I add a new image in forms mode, publish the page and is automatically sent to on-page editing, the view is not updated.


What is the difference between these two?


Are there anyway to force it to reload in some other way for updating the view?
Or any other tricks I can add to fix this? Cache?

#86028
May 12, 2014 15:15
Vote:
 

Hi Håkon,

Could try the

@Html.FullRefreshPropertiesMetaData

    More info could be found here.

#86029
May 12, 2014 16:27
Vote:
 

Thank you Petter.

It works!

#86046
May 13, 2014 8:35
Vote:
 

Glad I could help.

 

Happy coding!

#86057
May 13, 2014 11:40
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.