Toolbar Element (List)

Last modified: July 15, 2011

Applies to: SharePoint Foundation 2013 | SharePoint Server 2013

In this article
Child Elements
Parent Elements

Defines the toolbar of a list view, which is the section of a view that is rendered above the view header.

  Position = "After"
  Type = "Standard" | "FreeForm">




Optional Text. If Position = "After" is specified, the toolbar will appear below the view body. If not specified, the toolbar will appear above the view body.


Required Text. Specifies the kind of toolbar; this can be set to either Standard or FreeForm.

Minimum: 0

Maximum: 1

The following excerpt from the Schema.xml file for custom lists defines the New command of the toolbar, displaying the option to create items only to users with permission to add list items.

<Toolbar Position="After" Type="Freeform">
      <RightsGroup PermAddListItems="required" />
      <HTML><![CDATA[ <table width=100% cellpadding=0 cellspacing=0 border=0 > <tr> <td colspan="2" class="ms-partline"><IMG SRC="/_layouts/images/blank.gif" width=1 height=1 alt=""></td> </tr> <tr> <td class="ms-addnew" style="padding-bottom: 3px"> <img src="/_layouts/images/rect.gif" alt="">&nbsp;<a class="ms-addnew" ID="idAddNewItem" href="]]></HTML>
      <URL Cmd="New" /><HTML><![CDATA[" ONCLICK="javascript:NewItem(']]></HTML>
      <URL Cmd="New" /><HTML><![CDATA[', true);javascript:return false;" target="_self">]]></HTML><HTML><!-- _locID_text="onetid6" _locComment="{StringCategory=HTX}" -->$Resources:core,addnewitem;</HTML><HTML><![CDATA[</a> </td> </tr> <tr><td><IMG SRC="/_layouts/images/blank.gif" width=1 height=5 alt=""></td></tr> </table>]]></HTML>

Other resources

© 2015 Microsoft