AI OnAI Off
Hi!
What you would need to do is to implement an ISelectionFactory. The interface only has one method, GetSelectListItems, that should return the options that should appear in the drop down list.
Then you can decorate a property on your model class with the DojoWidget attribute, do indicatate that it should use that factory. It would look something like this:
[DojoWidget(SelectionFactoryType = typeof(MyCustomSelectionFactory))]
public string MyValue { get; set; }
Regards
Per Gunsarfs
EPiServer Development Team
Hi!
I'm trying to create a custom visitor group criteria with a dropdown. The only examples I've seen are with enumerators and predefined values in dropdowns. The thing I would like to do is to populate the dropdown with dynamic values from a database. Is this doable at all? Preferably without using ajax but if that's the only way I'm up for it. ;)
regards
Christina