AI OnAI Off
If you hook in to the IContentEvents service you can put an event in for the page updating then programatically set the value by looking through the IList.
Hi Scott Reed,
Thanks for the update. I am using "PublishingContent" event to fix this issue.
Hi Team,
I have a requirement to auto increment PropertyList class value. Can you please provide suggestions to acheive this? Below are the classes which i have created.
public class QuestionOption
{
private int _id;
[Required]
[Editable(false)]
public virtual int Id
{
get
{
return _id;
}
set
{
_id = value;
}
}
[Required]
public virtual string Name { get; set; }
}
/// <summary>
/// Selection base page
/// </summary>
public class SelectionBase : QuestionBasePage
{
/// <summary>
/// Gets or sets the options
/// </summary>
[Display(
GroupName = SystemTabNames.Content,
Name = "Options",
Order = 100)]
[EditorDescriptor(EditorDescriptorType = typeof(CollectionEditorDescriptor<QuestionOption>))]
public virtual IList<QuestionOption> Options { get; set; }
}