Sharing Knowledge
Posts tagged tutorial
XSLT How To: Reordering and Alternate Styling based on Position
06 months ago
by Dave Yules
in XML/XSLT
While XSLT is fantastic for organizing and styling XML, when it comes to manipulating the sequence of the information in a way other than basic sorting, it sort of comes up short. Specifically, it seems there isn’t a prepackaged way to grab an item, then simultaneously place it higher in the list and remove it from its original location. This simply cannot be accomplished with the element.
SharePoint 2010 – Creating a Content Query Web Part (CQWP) Link Target
07 months ago
When you setup a CQWP and point to a Links List it allows you to define a few fields of data in the output: 'Title' and 'Link' (unless you have an image as part of your link). This is fine, however we also want to provide a target value. I'm sure there's way to hack at the webpart and do something creative with the XSL, however I've come up with a much simpler method using a calculated field.
Customizing the SharePoint 2010 Welcome Menu (PersonalActions)
27 months ago
Creating a CustomAction is pretty easy, you just need to identify the GroupId and Location of the menu you wish to modify and then you're good to go. You even have a simple function called a URLAction where you can direct people to page when they click on your custom action. What isn't so obvious is if you actually wanted your application page to popup in a modal view. Here is the code I used to get this done.
Embedding a PDF Object in a SharePoint 2010 Web part using C#
310 months ago
Recently I was assigned the task of displaying a PDF in a SharePoint Web part. I figured it’d be easy enough to display it in an iframe or simply embed it on the page, but unfortunately my assumption couldn’t have been further from the truth.
Export Gridview to CSV in a SharePoint 2010 Webpart
311 months ago
I was recently tasked with creating a Gridview in a SharePoint 2010 Webpart. In addition to assigning data to the Gridview, I also needed to create a way to export the data. The code to export to Excel was working, but with ugly user prompts. so I went with CSV. Here's the code...
Using SP.UI.ModalDialog in SharePoint 2010
01 year ago
I find this class very useful when creating visual webparts in SharePoint 2010 that require some sort of administrative feature or user feedback. In fact, if you look at the SharePoint 2010 architecture, you'll notice that Microsoft have tried to avoid moving you to different pages in favor of the modal view.