XsltListViewWebPart – remove checkboxes

Within SharePoint Designer (SPD), the new SharePoint 2010 way to do a DataViewWebPart (DVWP) is with an XsltListView (XLV) WebPart.

This is a very powerful UI control, in which you can edit columns, and do pagination, sorting, move columns, etc – but – I couldn’t find a way to turn OFF the checkboxes for a list view – which allow for multi-selection in a list.

** Shown here to the left – and the top.

image

Within the SharePoint UI, this is a setting within the ‘View’ settings – listed under ‘Tabular View’ :

image

But – within SharePoint Designer, I couldn’t find the equivalent setting anywhere – please let me know if you found it (!)   

Instead, you need to add a tag to the XML for the XLV.

To drop the checkbox’es to the left of each row, add the following to the XML markup within SharePoint Designer :

TabularView="FALSE"

This needs to be included in the “VIEW” tag – as shown below :

 <View Name="{014283C5-3BA2-45D2-9C74-0B5AA2583CD1}" TabularView="FALSE"  MobileView="TRUE" Type="HTML" Hidden="TRUE" DisplayName="All Documents" Url="/CorpTech/SitePages/dddddd.aspx" Level="1" BaseViewID="1" ContentTypeID="0x" ImageUrl="/_layouts/images/dlicon.png">
      <Query/>
      <ViewFields>
       <FieldRef Name="LinkFilenameNoMenu"/>
       <FieldRef Name="Document_x0020_Descriptor"/> …..ETC….

Hope that helps – give it a try…

NB.  Don’t add it to the base XsltListViewWebPart – it won’t work – but won’t error either.   You’ll see a little red squiggly line, mentioning that it’s not valid XHTML for this tag (schema).   Add to the “View” tag instead.

Smile

Advertisements

15 thoughts on “XsltListViewWebPart – remove checkboxes

  1. Pingback: Remove Checkboxes from XSLTListViewWebpart in Sharepoint Designer | bentedder.com

  2. Pingback: Remove Checkboxes from SharePoint Dataviews « The Comms Geek

  3. Oddly enough, that is not working for me. I have had success with this in the past so I believe that it should work. I have the ribbon hidden so I wonder if that is impacting the setting. Also, my ViewGuid is set to “{000-000..etc.} all zeros. If I actually set the guid to match the Name attribute in the View itself, the page errors out. Odd…

    Like

    • Here is how I fixed my issue. First, ViewGuid attribute wa not needed on the XsltListViewWebPart. Also, Name attribute was not needed on the View element within my XmlDefintion. I simply added a new attribute Default=”TRUE” to the XsltListViewWebPart and the TabularView=”FALSE” attribute began to take effect as expected.

      It still feels like I might be abusing something somewhere in here but for now it works.

      Like

      • I have the same issue…but I am adding the webpart programmatically though the elements xml… don’t see a way to add the Default=”TRUE”, is this in the schema.xml for the list?

        Like

  4. Quick comment regarding your first sentence – the DVWP and XLV functionality is actually still separate in 2010. If you click on the DVWP button in the ribbon, then choose a list or library, you’re adding a list view (XLV). If instead you choose “Empty Data View” and then choose the datasource from within the design window, you get the DVWP code instead. The actual XLST markup involved is different.

    Don’t ask me why they chose to do it that way but it confuses a lot of people.

    Like

  5. Pingback: SharePoint 2013 Random Image Rotator Web Part Using a Data View Web Part | The SharePoint Whisperer

  6. I actually want to do the opposite, adding the tabular view to the list view web part. The checkbox disappeared after the site has been upgraded from 2010 to 2013. I tried the TabularView = “TRUE” but it didn’t work, any thoughts? Thanks!

    Like

  7. Itried, Default=”TRUE” and TabularView=”FALSE”, In SPD, Design View it shows fine. But, on page, the checkboxes are still shown! Any thoughts?

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s