Virtual Happy Hour is canceled this month (March) due to Good Friday.
Try our conversational search powered by Generative AI!
AI OnAI Off
Virtual Happy Hour is canceled this month (March) due to Good Friday.
You could do something like this:
[EditorDescriptorRegistration(TargetType = typeof(string), UIHint = "FloatingString")] public class FloatingStringEditorDescriptor : EditorDescriptor { public override void ModifyMetadata(ExtendedMetadata metadata, IEnumerable<Attribute> attributes) { base.ModifyMetadata(metadata, attributes); metadata.CustomEditorSettings["uiWrapperType"] = UiWrapperType.Floating; } }
This will create a floating editor for strings values.
Add a UIHint("FloatingString") to the SelectOne and SelectMany properties in your model.
With on-page editing you will now have a floating editor with a dropdown or checkbox list.
/Mark
Thank you very much Mark, and this doesn't look like dark magic at all.
Just wondering, where can I find this kind of resource/documentation, it took me hours searching around.
Well this one you can find in the Episerver documentation
But mostly it's just searching the blogs an forum (Google is your friend)
This is a problem I ran into when client wants more friendly on-page editing experience so that they won't need to switch between the page view and form view.
So I am adding a lot of Razor code such as "
When I tried to edit thoes fields on page, I didn't get the checkbox list, it was simply rendered as a plain text string (the backing type). Is there a way to use the checkbox list/dropdown from the form view for on-page editing?