Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Hi,
You can use a custom editor descriotor and override the GridDefinition commands to not include "Edit" as an option. Something like below. Please note i have not tested the below code. But it should work.
[EditorDescriptorRegistration(TargetType = typeof(IList<MyCustomProperty>))]
public class MyCustomEditorDescriptor : CollectionEditorDescriptor<MyCustomProperty>
{
public override void ModifyMetadata(ExtendedMetadata metadata, IEnumerable<Attribute> attributes)
{
base.ModifyMetadata(metadata, attributes);
var commands = base.GridDefinition.Commands - CollectionEditorCommands.Edit;
metadata.EditorConfiguration.Add("commands", (object) commands );
}
}
~ Sujit
Hey all!
Next to selection factory list items there are options to Edit, Move Up, Move Down and Delete. Is there a built in attribute or other way to remove Edit option to particular selection factory? Screenshot attached:

Cheers!