I have a list view with the following XML Schema:
<View Name="{F3EBC2C7-292D-4E7D-86CC-35228DA1B6EE}" Type="HTML" TabularView="FALSE" DisplayName="CustomView4" Url="/sites/TeamsitewithLibraries/dhthPictureLibrary/Forms/CustomView4.
aspx" Level="1" BaseViewID="6" ContentTypeID="0x" ImageUrl="/_layouts/15/images/plicon.png?rev=40" ><Query /><ViewFields><FieldRef Name="Title" /><FieldRef Name="Created"
/><FieldRe
f Name="Modified" /></ViewFields><RowLimit Paged="FALSE">50</RowLimit><JSLink>SP.UI.TileView.js|callout.js</JSLink><XslLink Default="TRUE">main.xsl</XslLink><Toolbar Type="Standard"
/></View>
I need to modify the TabularView attribute to true, using CSOM, preferably Powershell but C# will do.
I tried:
1)
$viewInfoCreation['TabularView']=$true // Unable to index into an object of type Microsoft.SharePoint.Client.ViewCreationInformation.
2)
$listViewTochange.ListViewXml='...(NEW SCHEMA ON EXISTING VIEW)... '$listViewToChange.Update() /// nothing changes and no errors
$ctx.ExecuteQuery()
3)
$viewCreationInformation.ListViewXml='...(NEW SCHEMA)... ' //Property 'ListViewXML' cannot be found on this object; make sure it exists and is settable
Any ideas?