November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
Hi,
Since these properties are created in the database so the only way to hide them from CMS view is to remove them from the code and then delete it from Admin->Content Type section
Hi, how about a custom CollectionEditorDescriptor and ExcludedColumns?
How to hide some properties from table of PropertyList<T> (episerver.com)
Hi,
I have an existing specialized property list of a custom class with 2 properties ie Name & Email.
As part of refactoring:
With the above changes ,I needed a schedule job migration activity. To migrate the existing name & email properties to the newly added ones,I had to keep the existing properties for which i decorated the properties with [Ignore].
The migration activity was successful.Name is now split into 3 & email replaced with email address.
Now, the problem here is,as the two old columns (name,email) is no longer used & was just used for migration activity,I need a way to hide these two columns completely.
Including [ScaffoldColumn(false)] to the property works but not completely.This will only hide the properties when adding/editing new items to it.
[Ignore]
[ScaffoldColumn(false)]
public virtual string Name { get; set; }
[Ignore]
[ScaffoldColumn(false)]
public virtual string Email { get; set; }
When I add new items to this custom property ,the two colums is not visible which is the expected behavior.
But, this is not the case where the property values are listed.The old columns are still visible.
So, my question is, is there a way to hide properties completely?Or do i have to wait for the next release of the application wherein i remove them from the code & deploy the changes?There is no point in keeping it in the list itself as it is obselete now.
Any input is appreciated.
Regards.