Property List - Show/Hide Property for CMS editors based on other Property value



I need to implement the ability for CMS editors to associate a list of facets to a page type.

They need to be able to select the facets from a pre-defined list, reorder the facets and add ranges for range facets.

I'm using Episerver CMS 10.10.4. 


I'm trying to use property lists to define the facets and the facet ranges, so I don't implement a custom property from scratch. However, I couldn't find a solution that works with property lists for hiding the ranges when adding/editing non-range facets


I've tried adding a block to contain the property list or the property list item, but that breaks out the display for the property list.


Does anyone have an idea on how I can achieve this?


public class ProductListingPage : SitePage
            Name = "Custom Facets to display on page")]
        public virtual IList CustomFacetsList { get; set; }

public class CustomFilterProperty: PropertyListBase

public class CustomFilter
	[SelectOne(SelectionFactoryType = typeof(FacetDefinitionSelectionFactory))]
	public string Filter { get; set; }

	[EditorDescriptor(EditorDescriptorType = typeof(CollectionEditorDescriptor))]
	public IList Ranges { get; set; }
public class RangeFilterProperty: PropertyListBase

public class RangeFilter
	public int? From { get; set; }
	public int? To { get; set; }

[EditorDescriptorRegistration(TargetType = typeof(IList))]
public class CustomFilterCollectionEditorDescriptor: CollectionEditorDescriptor
	public override void ModifyMetadata(ExtendedMetadata metadata, IEnumerable attributes)
		ClientEditingClass = "app/editors/CustomFilterCollection";

		base.ModifyMetadata(metadata, attributes);


function (
) {
    return declare([CollectionEditor], {
        _getGridDefinition: function () {
            var result = this.inherited(arguments);

            result.ranges.formatter = function (values) {
                return values != null ? => msc.from + " - " +"
") : ""; }; return result; } }); });
Edited, Mar 19, 2018 14:29
* 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.