I'm encountering some problems with my Custom Type Field... It works, but I cannot make it display as I want inside my list! First of all I've overwrite the FieldValueType like this:
public override Type FieldValueType
{
get { return (typeof(MultiLinkPicker)); }
}
Then I overwrite the GetFieldValueAsHtml to act as I want:
public override string GetFieldValueAsHtml(object value)
{
string[] indirizzi = base.GetFieldValueAsText(value).Split(';');
StringBuilder sb = new StringBuilder();
string app = String.Empty;
foreach (string s in indirizzi)
{
sb.Append("<a href=\"" + s + "\"> </a><br />");
}
return sb.ToString() + app ;
}
The problem is that SharePoint shows me in the list the whole text, not the links! In the column I find
<a href="..."> </a>
And not the link! How can I do to solve this problem? I tried overwriting other methods, but it doesn't work at all. Any suggesions?