Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Change a view field (listItemMenu) through CSOM

$
0
0

Hi gays,

I have to change a views because the edit button linked to name for example I want to appear linked to another field.

I've seen how I have to do manually:
Open the aspx file in which is the list (e.g: allitems.aspx) and add listItemMenu="TRUE" attribute to the required field:

<ViewFields><FieldRef Name="Title" linkToItem="TRUE" listItemMenu="TRUE" /><FieldRef Name="Subject"/><FieldRef Name="Teacher"/></ViewFields>

but I need to do that through CSOM, because if I update some thing of the view, I lost this changes.

Any ideas?

Thanks in advance!



Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>