Custom Column Sharepoint 2010 Calendar October 11, 2011
Posted by spunkyvt in Uncategorized.trackback
I had created a custom column (SPFieldMultiColumnValue). Using the Fldtypes for both the xml and the xsl, for standard lists and library’s the display was spot on, but for a calendar display it would show the value of the multicolumn field separated by commas. After much searching and googling, nothing.
To correct this.
public class CustomColumnField : SPFieldMultiColumn
{
public override string GetFieldValueAsText(object value)
{
SPFieldMultiColumnValue mvc = new SPFieldMultiColumnValue(value.ToString());
return mvc[0].ToString();
}
}
Advertisement
Comments»
No comments yet — be the first.