Question

I'm currently creating some list definition for use in a SharePoint 2010 environment. In these definitions I need to to define a view which enables in-line editing. This is easily accomplished in the UI as well as from code by setting the InLine property of the SPView object to "TRUE", however I can't find any property of the CAML definition of the view to set the property.

I've looked at what Visual Studio supplies in the auto-complete for both attributes of the element and immediate children of the same element and nothing seems to be relevant.

Anyone know if I'm looking in the entirely wrong place, or have any idea where to set this in the schema.xml of the list definition?

Was it helpful?

Solution

You can enable Inline Editing in the View element of the List definition (Schema.xml) by defining the InlineEdit element and giving it a value of TRUE, like so:

<View ...>
  <ViewFields ... />
  <Query ... />
  <Aggregations Value="Off" />
  <RowLimit Paged="TRUE">30</RowLimit>
  <Mobile ... />
  <InlineEdit>TRUE</InlineEdit>
  <Toolbar Type="Standard" />
  <XslLink Default="TRUE">main.xsl</XslLink>
  <ParameterBindings>
    <ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" />
    <ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_DEFAULT)" />
  </ParameterBindings>
</View>

OTHER TIPS

On a Quick Note,In SharePoint 2010 CAML Based view is obsolete. Though CAML based view will work in 2010 it will not be support for the next version of SharePoint. Considering that you are developing new List Definition IMHO I recommand to look in to the XSLT based views and see if you could get your requirement work in the XSLT.

  1. CAML Obsolete & View is based on XSLT
  2. CAML Reference
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top