o I am trying to create two dropdown list in Episerver using Selection factory. But I want to connect them somehow.
Something like Country -> Region,
is there a way that I could do that without using DOJO? Or do I have to use it?
[SelectOne(SelectionFactoryType = typeof(CustomCountryFactory))]publicstring Country { get; set; }
[SelectOne(SelectionFactoryType = typeof(CustomCountryFactory1))]publicstring Region{ get; set; }
publicclassCustomCountryFactory : ISelectionFactory
{public IEnumerable<ISelectItem> GetSelections(ExtendedMetadata metadata){var languages = new List<SelectItem>
{new SelectItem() { Text = "All", Value = "All" },new SelectItem() { Text = "Norway", Value = "Norway" },new SelectItem() { Text = "Sweden", Value = "Sweden" },
};return languages;
}
}
For the other selection factory I am not sure what to do.