0 out of 3 rated this helpful - Rate this topic

ViewHeader Element (View)

Windows SharePoint Services 3

Defines how the headers, or prefixes, of view fields are rendered.


<ViewHeader
  ExpandXML = "TRUE" | "FALSE">
</ViewHeader>
Attribute Description

ExpandXML

Optional Boolean. TRUE to re-pass the rendered content through the Collaborative Application Markup Language (CAML) interpreter, which allows CAML to render CAML.

Numerous

Minimum: 0

Maximum: 1

This element often contains an HTML fragment with ExpandXML set to TRUE to render embedded Field elements.

The following example defines the field headers for a view. Each field header in the view is rendered according to the class ms-vh, which is defined in Core.css (\\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\LCID\STYLES).

.

<ViewHeader>
  <HTML>
    <![CDATA[ <TABLE ID="onetidDoclibViewTbl0 ]]> 
  </HTML>
  <HTML>
    <![CDATA[ " width="100%" border=0 cellspacing=0 cellpadding=1 
        rules=rows><TR VALIGN=TOP><FORM> ]]> 
  </HTML>
  <Fields>
    <HTML>
      <![CDATA[ <TH class="ms-vh"> ]]> 
    </HTML>
    <Field /> 
    <HTML>
      <![CDATA[ </TH> ]]> 
    </HTML>
  </Fields>
  <HTML>
    <![CDATA[ </FORM></TR> ]]> 
  </HTML>
</ViewHeader>
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ