3
votes
1answer
39 views

Access Selected Items from List View

The following returns selected items correctly from standard list and document library types. var context = SP.ClientContext.get_current(); var items = ...
1
vote
1answer
50 views

Event or notification when a View is added to a List

Is there an event or notification or some way to execute a piece of code as soon as a new View is added to a specific List? I need to modify this newly added View (more specifically I need to edit ...
0
votes
1answer
56 views

Set view order with code in a listview using ListViewXml.OrderBy

So I have this line: lvwp.ListViewXml.OrderBy.. - after this I have no Idea what to write? I would like to assign something like: Combining like this: lvwp.ListViewXml.OrderBy<FieldRef ...
0
votes
1answer
404 views

How to add “Title field with link to Edit Menu” to a View using code-behind C#?

all I am trying to attempt adding Title with Edit Menu in SharePoint 2013 through code-behind. However, I am unable to do so. Below is my syntax I am using: StringCollection strViewFields = new ...
0
votes
0answers
18 views

How to add to Sharepoint list editing mode false after value change

I have got a list with a lot of elements. I want to add to sharepoint list date which block editing when the date expired. When the date not equal the selected Value.
0
votes
2answers
397 views

How to add a calculated column to list view programmatically?

I have created a SharePoint feature where I have added a list named "Employees". I have added a Content Type "Employee" and added to it some columns like "Vacation Days Taken", "Vacation Days ...
2
votes
1answer
67 views

Error using ListViewWebPart in a “using”

This one has me stumped. I'm creating a ListViewWebPart, which ultimately inherits from System.Web.UI.Control which implements IDisposable. So ListViewWebPart should also be IDisposable. Right? But ...
1
vote
0answers
70 views

Create TreeView C# for Office 365

I am currently building an Outlook Addin which enables users to save E-mails directly into SharePoint Online. but before the E-mails get saved, they Need to be prompted by a Windows which has a ...
1
vote
1answer
323 views

In a SharePoint List I cannot see items that are in a folder

I have a sharepoint list (Not Library), where I am programatically adding in a folder: SPList list = web.Lists[ListID]; SPFolder parent = list.RootFolder; SPFolder child = ...
0
votes
1answer
66 views

Change .aspx on a SPView

I'd like to create a SPView for my list that points to a complete custom aspx page. And I need to do that through c# code. Even if I could just override the AllItems.aspx in a Visual Project Project, ...
0
votes
1answer
299 views

Modifying List View in C# Doesn't Work?

I am trying to modify a view for a list in a Feature Event Receiver. The list is created in the same function; and the columns all added to it. When I look in the List Settings via the web interface, ...
0
votes
2answers
322 views

How to get elements from essential List programmatically

I have gotten two lists (like a view) from Microsoft Dynamics CRM. How can I get a elements from these two lists to the C# Sharepoint code in .cs file. The Administrator of CRM told me that this lists ...
2
votes
2answers
2k views

How to get item count for a List's View?

I have a Sharepoint List called "Tracker" that represents customer-submitted defects. I have a View on this list that only shows the items created in the last 7 days. This view works just fine when ...
0
votes
2answers
1k views

Add Listview of parent site list

i want to add a page where users can view and edit a list, problem is the list is not in the site but rather in its parent site. I also want to be able to filter the list so they can only see a items ...
0
votes
1answer
207 views

Modify default view in code to add group by

As per title, is it possible (and how) to modify default view in code so that it display contents of the list grouped by one of it's columns? I tried the following: defaultView.Query = ...
0
votes
1answer
450 views

Creating a custom View for List with custom UI

I'm trying to create a custom view for a list with custom UI. The following is my code: list.Views.Add("List View", coll, Query, 10, true, false); list.Update(); SPView view = list.Views["List ...
1
vote
2answers
140 views

Updating the Default View via Webservices

I am trying to find a good sample code on updating the fields that are displayed within the default view. The current code creates a list on the fly and then adds the needed columns. Once the ...
4
votes
1answer
448 views

How to customize a ListView Webpart from code

I have a repository of files... I'd like to create a ListView Webpart wich receives the path in the tree and show the files in the document library... It's possible to do this by code? Is there any ...
0
votes
2answers
412 views

How to temporarily hide a column in a list view

To put this in context, what I need to do to complete work on a custom action is to hide a particular column from users who aren't members of a given group. Given that the custom action is implemented ...
3
votes
1answer
148 views

Can document views/metadata be 'live'?

We have a need for end users to see documents with additional 'live' columns, i.e. I would like to show a view of documents with employee id JOINED with data from sql server (for some additional ...
1
vote
3answers
2k views

How do I get all list views by using a web service?

I'd like to get all list views via web service using C# code, containing the columns: modified by created by subject body id created modified How can this be done?