Posts

Showing posts from March, 2015

Datasheet View for Picture Libraries in SharePoint 2010

In SharePoint 2010 there are Datasheet Views for Picture Libraries not aviable, but there is a way to open them. First of all you need to open a List in Datasheet View and copy the link. example: http://mySharePoint/mySite/Lists/Links/AllItems.aspx ?ShowInGrid=True&View= %7B6686F338%2D5937%2D46F6%2D90EA%2D7B57B97B4207%7D &InitialTabId=Ribbon%2EList&VisibilityCont You need to replace the marked fields. In the first field you need to enter the link of the Picture Library you want to open. Important is that you use the 'All Items' view.

Remove the title area in SharePoint apps

Image
Sometimes it is nice, sometimes it is annoying. Yes I am talking of the titlearea of SharePoint 2013 Apps. But don't worry, it is easy to remove it from your app. All you need to do is to paste some css into your stylesheet. I recommend to use a css-file that is used in every site. This way you need to do the change on just one place. 1 2 3 #s4-titlerow { display : none !important ; } After pasting the code into your app you won a lot of space and you can build your own design.

How the ClientContext of SharePoint CSOM works

If you are writing clientsite applications for SharePoint you can use for example the Client Site Object Modell (CSOM). In the CSOM you will need to use the ClientContext to communicate with the SharePoint, but how does it work? Using the ClientContext is like going to the supermarket.First of all you are looking out to which supermarket you will go. Then you figure out what you need and write it down to a shopping list. After that you are going to the supermarket and get all the stuff you need. So first of all lets get the SharePoint (supermarket) we want to get our stuff from. ClientContext ctxSupermarket = new ClientContext( "http://mySharePointURL/mySupermarket/" );

DragAndDrop in Outlook - is it a mail, an attachment or a file?

If you are developing an addin for outlook and you are building a drag and drop able control, you will need to check what kind of data droped in. In the following code I made differences between those three types: files from the filesystem, mails out of Outlook and attachments that came from mails in Outlook. I used the DragEventArgs to figure out what was droped and then I handle each way a bit different.

Refreshing the UI in WPF

If you are using WPF and missing the 'Application.DoEvents();' method, you know from Windows Forms to refresh the UI, here is a solution for you. I had the same problem and was looking for a way to refresh the UI in runtime.

The project type is not supported error

Image
I tryed to open a Visual Studio project on another enviroment and ran into an error. A dialog poped up and looked like this. The Output Window sait 'The project type is not supported by this installation.'. So Visual Studio was not able to read the projectfiles. The reason is that the project templates are not installed.