volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Custom Dropdownlist property

What's the best practice for doing this. Simply a dropdown that has custom items. I've tried this but can't get it to work. Get a javascript 'focus' error and data is not saved. public class BTAreaIdControl : PropertySelectControlBase { public override void CreateEditControls() { base.CreateEditControls(); EditControl.Items.Add(new ListItem(CurrentPage.PageName, "1")); EditControl.Items.Add(new ListItem("Annan sida", "2")); } public BTAreaId BTAreaId { get { return PropertyData as BTAreaId; } } } The BTAreaId class is as generated from VS.
#15996
Feb 11, 2008 15:56
Take a look at the sample code provided in this forum thread: http://www.episerver.com/en/EPiServer_Knowledge_Center/Developer-Forum2/EPiServer-Developer-Forums-/EPiServer-CMS-version-5/13479/ /Mari
#16774
Feb 11, 2008 21:32
Thank you, searched the forum for the wrong thing.
#16775
Feb 12, 2008 0:03
error This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* 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.