XsltListViewWebPart class in Microsoft SharePoint Foundation derives from the XSL-based DataFormWebPart class. It replaces the ListViewWebPart class as the default view type in list views, although it generates equivalent HTML for the same view settings.

learn more… | top users | synonyms

2
votes
3answers
12k views

Creating an XsltListViewWebPart programmatically: Columns & toolbar

I add an XsltListViewWebpart to a page in an event receiver like this: public void CreateWebPart(SPList documentsList, SPLimitedWebPartManager wpm) { var documentsWP = new XsltListViewWebPart(); ...
12
votes
5answers
9k views

Add Document Library XsltListViewWebPart using CSOM or web services

How to add a document library XsltListViewWebPart (or list view web part) on page using CSOM with SP2013 when we do not want to use the in-built view with "Name, Modified, Modified By" fields? Custom ...
7
votes
2answers
3k views

Error with /_layouts/assetportalbrowser.aspx

The AssetPortalBrowser.aspx page is throwing an error when rendering list or library content (screenshot and ULS output below). This happens regardless of the site opened from or the list/library you ...
3
votes
2answers
13k views

How to change column title for a view, but not modify the list?

SP2010. I have a list that works fine, and I don't want to modify or rename any of it's columns. Why? I've got plenty of Ajax queries hitting that list, and don't want to break what works. But, this ...
0
votes
1answer
1k views

How to edit xslt for thumbnail view of Asset Library.?

I have added an XsltListViewWebPart which refers to the Asset Library in the site. I have given reference of AssetPick.xslt for thumbnail view for that web part. I want to put the Title in place of ...
3
votes
3answers
1k views

Search in List view on publishing page layout

UPDATE after trying the OOTB list app: I have a strange issue with placing a list view web part on a publishing page layout. The searchbox is displaying, but when I search it does not load any ...
6
votes
3answers
2k views

Why don't folders work when adding an XsltListViewWebPart to the page via code?

I have an issue with adding an XsltListViewWebPart to a page for a Document Library. When I do it using the code below everything works fine unless I create a folder and upload a document there. Such ...
7
votes
2answers
9k views

XSLT Get Current date or Today in XSLT

Help please can anyone advise how I get current date, or today method in xslt 1.o SharePoint
3
votes
1answer
89 views

Using Author in CAML Join

I'm trying to join my list and the users joining by the author (in a related element listview - XsltListViewWebPart): <Query> <Where> <Eq> &...
1
vote
1answer
1k views

How to customize the XsltListViewWebPart?

I would like to have submission feature on the List List structure would be Mon-Fri is considered as a week, user would be asked to select the current week's Friday from the calendar. It ...
4
votes
2answers
14k views

Defining custom views in a list's schema.xml file

I have create a custom list definition, with a content type. In the schema.xml, I'd like to define two views : All items (the default one, generated by Visual Studio) My items (the same view with a ...
3
votes
1answer
2k views

2007 ListViewWebPart to 2010 XSLTListViewWebPart

After migrating from SharePoint 2007 to 2010 we found a few issues in the migrated document libraries, some styles were looking wierd and the biggest problem is that the "Add New Item" button is not ...
2
votes
2answers
2k views

Getting last three images with XSLListViewWebPart

I am trying to get the latest three images added to a picture library and put them on home page with XSLListViewWebPart but can't manage it to work. Here is the sample output I am trying to get: <...
2
votes
1answer
1k views

Paging in XsltListViewWebPart is not working perfectly when added programmatically

I want to place a list view of the document library using XsltListViewWebPart. My is as below: using (SPSite site = new SPSite("XXX/")) { using (SPWeb web = site.OpenWeb()) { SPFile ...
2
votes
2answers
12k views

How to add a XSLT List View Web Part into a Page Layout

How is it possible to add a XSLT List View Web Part into a Page Layout? I want to do this basically so that instead of adding the web parts I want to multiple pages, I can just apply the specific page ...
1
vote
3answers
3k views

Hide column in xslt view

I've got an xslt list view. I have one column that should be used in the xslt calculation (shown as a row tooltip) but it should not be visible as a column in the list. Question: Must the column be ...
0
votes
1answer
452 views

Sharepoint 2010 grouped xsltlistview with custom XSL does not show items when initial settings for group is 'fold'

Following problem : I have a xsltListView (auto created on a publishing site). I have editted the default view and copied the stylesheet to a new .xsl file and placed it into the style lybrary. On ...
0
votes
1answer
1k views

How to use XSLT in sharepoint

I am new to XSLT coding in SharePoint, but I know that we can use XSLT coding to create a list view with more sty-lings. I have a list named "detailsOfEmployee" with columns title, name, Id, salary, ...
4
votes
2answers
5k views

XSLT ListView web part grouping and filtering

I have a web page in sharepoint 2010 on which I have added a document library using a XSLT ListView web part in sharepoint designer. I created a parameter that gets its value from the URL and is used ...
3
votes
2answers
4k views

Sharepoint 2013 JSLINK template with view grouping rendering

I'm looking for a tutorial or documentation on how to create a JSLINK rendering template that will perform view grouping rendering. I need to use this in connection with the list view webpart, where I ...
3
votes
2answers
2k views

XsltListViewWebPart forgetting current web when being rendered on Layouts page

I'm adding a very simple XsltListViewWebPart to an application page. Like so: XsltListViewWebPart lvWebPart = new XsltListViewWebPart { ChromeType = PartChromeType.None, ListUrl = "/somesite/list" }; ...
2
votes
3answers
1k views

How to add a listviewwebpart by code

In my current production code, we have the following that was working perfectly fine: XsltListViewWebPart clientInfoWebPart = new XsltListViewWebPart(); clientInfoWebPart.Title = "Client Info"; ...
2
votes
0answers
777 views

Filtering a XsltListViewWebPart that has "Send Row of Data To“ connection doesn’t work?

Filtering of a XsltListViewWebPart is absolutely no problem when you change the webPart.XmlDefinition property like this: var xml = new XmlDocument(); xml.LoadXml(...
1
vote
1answer
5k views

Displaying a library on a different site (same collection) in SP2013

On my root site, I have a Document Library which contains a lot of important documents. For this Library, on its owning site I can create a webpart which views the folders and items in a nice manner. ...
0
votes
2answers
5k views

Unable to display this Web Part. To troubleshoot the problem, open this Web page … & Error: Reference to undefined entity 'nbsp'

I created a page in SharePoint Designer 2007 that use a SharePoint Library. I used the method of 'generating XSLT' from this page - How to customize the header titles of the List Views web part ...
0
votes
1answer
111 views

Update XsltListViewWebPart.ViewGuid Property on Page Load

I have a web part page with two XsltListViewWebPart web parts on it. Both are the same web parts pointing to the same Tasks list. I'm trying to update the view of both web parts and have the below ...