Skip to main content

Posts

Showing posts with the label dataview webpart

DataView Webpart - Sorting on Column headers (without coding)

I looked around alot for solution to sorting columns in DataView webparts and couldn't find an easy solution. Apparently there was an easy solution, right under our nose! Open the site in SharePoint Designer and navigate to the page where you have the webpart. Select the webpart and in the ribbon navigate to DataView Tools - Design . Check the options Header and Sort & Filter on Headers and you are all set! PS: I have got it working on SPD 2013 but you may want to check if the same applies to SPD 2010.

XSLT - Learned the hard way

I never really cared about learning or using XSL and XSL style sheets in my projects. But then I was wrong, I should have mastered this, it is an important weapon in a SharePoint consultant's arsenal. In this blog post I try to note down my experience with XSL so that I can refer back to this again later. 1. If you see characters like ampersand (&) appearing as &amp; in your List view with custom XSL template then you got to disable output escaping. disable-output-escaping ="yes" 2.   For one of my projects I had to dynamically bind a URL field in a DataView webpart. The requirement was to display different views (InfoPath) of a list based on two column values in the list. One of these values was set by a work flow. There are different ways to do this and there may be better ways of achieving this but this is how I did it:   < xsl:choose >            < xsl:when test ="@Status1 = 4 and @Status2 = 4">   ...