I have a page with Ilist property and the property has Ilist property in it. While displaying in CMS, it shows [object Object],[object Object] in grid. My code looks like below.
[CultureSpecific]
[Required]
[EditorDescriptor(EditorDescriptorType = typeof(CollectionEditorDescriptor<MyPropType>))]
[BackingType(typeof(MyPropTypeListProperty))]
[Display(Name = "Something = 11)]
public virtual IList<MyPropType> MyProps{ get; set; }
[PropertyDefinitionTypePlugIn]
public class MyPropTypeListProperty : PropertyListBase<MyPropType>
{
}
public class MyPropType
{
[EditorDescriptor(EditorDescriptorType = typeof(CollectionEditorDescriptor<MySecondPropType>))]
public virtual IList<MySecondPropType> MySecondProps{get;set;}
}
public class MySecondPropType
{
...
}
[PropertyDefinitionTypePlugIn]
public class MySecondPropTypeProperty : PropertyListBase<MySecondPropType>
{
}