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
Why not add 4 elements for dropdowns into the same Form Container Block?
Could you otherwise give an example on your case what should have 4 dropdowns and why they need to be in one control?
I want to have multiple dropdowns within a form custom control.
The following will render one dropdownlist. But I want to add another 4 dropdowns in addition to the one below.
The property name 'Items' is obtained from SelectionElementBlockBase and can only be used once to render one dropdown.
How can I create another dropdown using the approach below. SelectionElementBlockBase seems to allow one dropdown only
Public class selectlistsblock : SelectionElementBlockBase Items ();
{
[Ignore]
public override IEnumerable
{
get
{
var lst = new List
var cats = GetCategories("department");
foreach (var cat in cats)
{
yield return new OptionItem { Caption = cat.LocalizedDescription, Value = cat.LocalizedDescription, Checked = false };
}
}
}
}