I hooked up an extra eventhandler to the Sitecore onItemSaved actions to change the icon of an item in Sitecore. The icon gets changed, but you have to refresh the Sitecore content tree to see that it has changed. Is it possible to programatically make sure the changed icon gets visible to the user instantly in the content tree?
I used:
item.Field["__icon"].Value = "someicon.pgn"
with a Editing.BegintEdit()
and a EventDisabler
around it.
When you change the Icon of an item in Sitecore itself, the icon gets visible instantly, this is what I would like to see aswell.
Any suggestions?
Thanks!