Showing posts with label SharePoint 2013. Show all posts
Showing posts with label SharePoint 2013. Show all posts

Friday, May 24, 2013

Customize the List View in SharePoint Designer 2013

 How to style the List View webpart in SharePoint Designer 2013?

With the missing design view in SharePoint Designer 2013 the designing part of simple webparts is now a bit complicated.

Here I discuss the designing of a List View webpart.
  
The first step is to bring up the List View Tools . To do this just click anywhere in the List view webpart code.
Go to the Design tab and click on the Customize XSLT. Select the Customize Entire View and click.
This expands the list view XSLT code and provides us the opportunity to make changes. 
 
Customize XSLT
 
In the XSLT we need to find the places where the attribute class is defined for the components/templates we want to design. It will be something like the code shown below.
Here we can provide our own class name and define the styles for that using the CSS.
 
 
I hope this helps you a bit. If you have a better solution. Please post in comments.