Tell me more ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I'm adding a webpart programitcally through the elements xml document as follows:

<Module Name="DefaultHomePage" Url="Pages" Path="Pages">
    <File Path="Home.aspx" Url="Home.aspx" IgnoreIfAlreadyExists="True" >
        <View List="Lists/Personnel Holiday Entitlement" BaseViewID="4" WebPartZoneID="RightHandSide" WebPartOrder="1">
            <![CDATA[
                <webParts>
                    <webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
                        <metaData>
                            <type name="Microsoft.SharePoint.WebPartPages.XsltListViewWebPart, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
                            <importErrorMessage>Cannot import this Web Part</importErrorMessage>
                        </metaData>

                        <data>
                            <properties>
                                <property name="Title" type="string">Your Holiday Balance</property>
                                <property name="DisableViewSelectorMenu" type="bool">True</property>
                                <property name="InplaceSearchEnabled" type="bool">False</property>
                                <property name="ShowToolbarWithRibbon" type="bool">False</property>
                                <property name="AllowEdit" type="bool">False</property>
                            </properties>
                        </data>
                    </webPart>
                </webParts>
                ]]>
        </View>



    </File>
</Module>

However I'm trying to do a couple of things to how the web part looks i.e remove the check boxes for the title and each rows, tried use allowedit="false" AND TabularView="FALSE" on this but makes no difference. I've tried this on both the elements.xml and in the view schema xml but neither work...do i need to set this somewhere else?

TIA

S

share|improve this question
I belive that you try to customize the web part in the UI then export and see the resulting file - it may provided you some hint on wich property you may need to set. – SPArchaeologist Feb 15 at 10:26

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.