Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I'm using client object model in a custom webpart. What I'm looking for is a way to get the file-icons that represent the doc types of the files in a document library.

Probably I need a solution similar to SPUtility.MapToIcon but in client object model.

Thanks in advance

Stefan

share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted

There is a corresponding Javascript option:

http://msdn.microsoft.com/en-us/library/ie/ee658997.aspx

and http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.web.maptoicon.aspx (Microsoft.SharePoint.Client.dll or Microsoft.SharePoint.Client.Silverlight.dll)

share|improve this answer
    
Thanks a lot Ashish. That's exactly what I was looking for. –  Stefan Hennicken Feb 10 '12 at 11:43
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.