Share via


MobileListViewIterator.DefaultTemplateName Property

Gets the name of the default template for the list of mobile views.

Namespace:  Microsoft.SharePoint.Portal.MobileControls
Assembly:  Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)

Syntax

'Declaration
Public Overrides ReadOnly Property DefaultTemplateName As String
    Get
'Usage
Dim instance As MobileListViewIterator
Dim value As String

value = instance.DefaultTemplateName
public override string DefaultTemplateName { get; }

Property Value

Type: System.String
The name of the default template for the list of mobile views of the current list.

Remarks

In SharePoint Foundation, this property always returns "MobileListViewIterator". This is the value of the ID attribute of a <RenderingTemplate> element in the file MobileDefaultTemplates.ascx, which is located in %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\14\TEMPLATE\CONTROLTEMPLATES.

Do not modify MobileDefaultTemplates.ascx. To customize the rendering of this control, create another <RenderingTemplate> element in a new *.ascx file in the ...\CONTROLTEMPLATES folder. Give the new <RenderingTemplate> element an ID value that is descriptive but unique. For example, you can add your company name to the end of the ID, such as "MobileListViewIteratorMyCompanyInc". Then, you can derive a new class from SPMobileComponent (the same parent as MobileListViewIterator), and override its DefaultTemplateName property so that it returns the custom ID.

See Also

Reference

MobileListViewIterator Class

MobileListViewIterator Members

Microsoft.SharePoint.Portal.MobileControls Namespace