November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
You can try to make your own attribute and pass configuration to the dojo editor. This is a sample that I haven't tested:
using System; using System.Web.Mvc; using EPiServer.Shell.ObjectEditing; namespace Alloy.ObjectEditing { public class CustomAutoSuggestSelectionAttribute : AutoSuggestSelectionAttribute, IMetadataAware { public CustomAutoSuggestSelectionAttribute(Type selectionFactoryType) : base(selectionFactoryType) { } public new void OnMetadataCreated(ModelMetadata metadata) { base.OnMetadataCreated(metadata); var extendedMetadata = metadata as ExtendedMetadata; if (extendedMetadata == null) { return; } extendedMetadata.EditorConfiguration["autoComplete"] = false; } } }
Then you can decorate your property with this attribute instead:
[CustomAutoSuggestSelection(typeof(MySelectionQueryFactory)) public virtual string MyProperty { get; set; }
We've used the built in auto suggestion editor as described here http://world.episerver.com/blogs/Linus-Ekstrom/Dates/2014/7/Built-in-auto-suggestion-editor/ and it's very good however there is one change I would like to see and I wondered if anyone could suggest how to implement this.
When you start typing and get some results the first result is automatically selected which in most cases is fine (but not always). Is there any way to prevent the first item being selected - I don't think there is at present.
Thanks,
Mark