Custom Render Pattern for complex field
I have list with many fields, one of the fields contains complex data (for example xml data). I want to show list item standard way, but render this complex field not as text it contains, but my own render logic.
Any one know how to do such thing ? I have two ideas - rewrite full dispform page with custom code (but i don't know what fields list would contains), or rewrite IListIterator. May be there is another way ?
Thanks
[525 byte] By [
Mikaelo] at [2008-1-1]
Yes, but my custom list is only base list, users can create as many new fields in it as they want, so i can't use xslt, because don't know fields... i looking for method to override rendering of my field only.
All this articles are about creating custom rendering control for edit mode of list item.
Display form, what you see in DispForm.aspx - is described in BaseFieldClass control or in Render Pattern, example:
<RenderPattern Name="DisplayPattern">
<Switch>
<Expr>
<Column />
</Expr>
<Case Value="" />
<Default>
<HTML><![CDATA[+]]></HTML>
<Column SubColumnNumber="0" HTMLEncode="TRUE" />
<HTML><![CDATA[(]]></HTML>
<Column SubColumnNumber="1" HTMLEncode="TRUE" />
<HTML><![CDATA[)]]></HTML>
<Column SubColumnNumber="2" HTMLEncode="TRUE" />
</Default>
</Switch>
</RenderPattern>
But i need to create my custom rendering for display, not edit...