ViewEmpty Element (List)

Applies to: SharePoint Foundation 2010

Contains the string to be displayed in a view when no items are present.

Note

Most standard Microsoft SharePoint Foundation 2010 list views ignore this element. For more information, see XMLDefinition and CAML View Schema.

<ViewEmpty>
</ViewEmpty>

Attributes

Attribute

Description

None

N/A

Child Elements

Numerous

Parent Elements

View, ViewStyle

Occurrences

Minimum: 0

Maximum: 1

Example

If the view is empty, the following example returns a message indicating that the view has no items.

<ViewEmpty><![CDATA[<I>There are no items in this 
   view.</I>]]></ViewEmpty>

See Also

Reference

ViewBody Element (List)

Concepts

XMLDefinition and CAML View Schema

Other Resources

List Views