5

How do I disable this function from XML? Anywhere in Content Type or List Definition or List Instance?

4

If you want the quick solution to disable, you can hide that with the help of below CSS using a Content Editor Web Part in SharePoint 2013.

#Ribbon\.Library\.ViewFormat\.Datasheet-Large {
display:none;
}
3

See this post

You can try to use InlineEdit property of a list view

<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>
3

Defining the InlineEdit element radically changes the look of the list view.

Better approach: You can disable quick edit mode in the View element of the List definition (Schema.xml) by adding the TabularView attribute and setting it's value to FALSE.

Unfortunately, this attribute is not described in the official documentation (see Attributes section on MSDN page), but it works. It hides the Quick edit button from the ribbon and also hides the edit link from the view.

Example:

<View ... TabularView="FALSE">
  ...
</View>

UPDATE

You must also add the MasterVersion="4" attribute for View element. Without this attribute item selection checkboxes become broken. So the correct code is:

<View ... TabularView="FALSE" MasterVersion="4">
  ...
</View>

UPDATE 2

All above text is incorrect. See this answer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.