jump to navigation

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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.