November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
I solved this issue by adding
[ListItems(4)]
attribute.
[CultureSpecific]
[Display(Name = "Items", GroupName = PropertyGroupNames.Content, Order = 20)]
[EditorDescriptor(EditorDescriptorType = typeof(AnswerListPropertyDescriptor))]
[ListItems(4)]
public virtual IList<AnswerBlock> Answers { get; set; }
This works.
I need to add only 4 elements in IList. How can I do that?
[CultureSpecific]
[Display(Name = "Items", GroupName = PropertyGroupNames.Content, Order = 20)]
[EditorDescriptor(EditorDescriptorType = typeof(AnswerListPropertyDescriptor))]
public virtual IList<AnswerBlock> Answers { get; set; }
I tried to use [MaxLength(4)] but its not working. Please help?