.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

View Definition for SP 2010 Client Object Model

Posted By:      Posted Date: September 02, 2010    Points: 0   Category :SharePoint
Hello, I am looking for where in the SP Client Object Model that I would find where the View Definitions are Located. For various reasons, I am displaying in my own custom listview a list of Documents and I would like these list results to share the same look as if the user was looking at the list in SharePoint.Please note this is NOT web based, but an application. Can someone give me a hint as to how to pull a view definition? Thanks, Andrew

View Complete Post

More Related Resource Links

Client Object Model Resource Center | SharePoint 2010

Are you creating client applications that access SharePoint data remotely? Find overviews, guidelines, and programming tasks for all three flavors of the SharePoint Foundation client object model: .NET managed, Silverlight, and ECMAScript.

Quick Note: Building WPF Applications by Using the SharePoint 2010 Client Object Model

Learn how to create a Windows Presentation Foundation (WPF) application that uses the SharePoint 2010 client object model to retrieve data from a SharePoint Web site.

Using the SharePoint Foundation 2010 Managed Client Object Model with the Open XML SDK 2.0

Write client-side applications that work with Open XML documents that are stored in document libraries by using these two technologies together.

Using the SharePoint Foundation 2010 Managed Client Object Model

Write applications that are based on the .NET Framework and access SharePoint content from clients without installing code on the server that runs SharePoint Foundation 2010.

Video: Overview of the SharePoint 2010 Client Object Model

In SharePoint 2010 there are a number of object models that can be used by developers to access the server. For example, the Client Object Model (Client OM) can be accessed via Web services, via a client (JavaScript) API, and via REST. (Length: 12:22)

Video: SharePoint 2010: Silverlight Client Object Model

In this video you will learn how to use the SharePoint client object model to program a Silverlight application against SharePoint data. (Length: 9:03)

Video: SharePoint 2010: ECMAScript Client Object Model

In this video you will learn how to use the SharePoint client object model to program a ECMAScript application against SharePoint data. (Length: 8:20)

Video: Developing .NET Applications by Using the SharePoint 2010 Client Object Model

This demonstration shows how to use the client object model from a console application. (Length: 8:47)

Video: Developing Silverlight Applications by Using the SharePoint 2010 Client Object Model

This demonstration shows how to use the client object model from a Silverlight application. (Length: 11:15)

Video: SharePoint 2010 Data and the Client Object Model

This video provides an overview of how to use the client object model from a Windows Presentation Foundation application. (Length: 5:38)

SharePoint 2010 Client Object Model Issue



I want to make a windows form (VS 2010, C#.NET), where you can connect to a specific list on a SP site and display all the items in a Data Grid View.

I made the connection to x site and y list and display them to a treeview. When i add the list to the tree view, i set the property Tag to it and assign as value the name of the list. Then through the NodeMouseClick event handler i get the current list is selected in the tree view.

The next step i want to display all the items from the list in a Data Grid View (windows form).

The event handler code is here:

    private void farmExplorer_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
        if (e.Node.Tag != null)
          selectedList = ((SP.List)e.Node.Tag);
          String newUrlToLoad = currentUrl.ToString() + selectedList.ParentWebUrl;
          using (SP.ClientContext ctx = new SP.ClientContext(newUrlToLoad))
            SP.Web webToLoad = ctx.Web;
            SP.List myLis

2010 FullTextSearch with Client Object Model



for SharePoint Server 2007 i developed a wrapper around the standard search web service (QueryService-Class) for FullTextSearch outside of the server.

Now i start to develop a new version of my wrapper by using the client object model of SharePoint 2010. But i did not find a method or class in the Microsoft.SharePoint.Client namespace to start a FullTextSearch in SP 2010.

Can someone tell me if it is possible to start a FullTextSearch with the Client Object Model?



View previous version of a file in document library using Client Object Model




Using Server-side object model, it is pretty simple to get the previous file versions. Say I wanted to view a file in its initial version, all I’d need to do is :




When using Client object model, I couldn’t any analogous method/property which would let me fetch the previous version of file.

Can somebody point me to a sample or the property which would serve my purpose?

SharePoint 2010 Client Object Model upload size limit



for the client object model i found 2 methods for uploading files:

  • Microsoft.SharePoint.Client.File.SaveBinaryDirect
  • Mircrosoft.SharePoint.Client.FileCollection.Add

The 1st methods use a stream and the 2nd use a byte-array as parameter. This morning i noticed that with the Add-Method of the FileCollection-Class I only can upload files which are smaller than 3 MB. With larger files I get always the exception (400 - Bad request).

The SaveBinaryDirect-Method seem to have no upload size limit. I can upload files which are 50 MB large. Unfortunatley it gives me no return value, but i like to get an object with id/guid for later operations (update/delete).

Is it possile to change the upload size limit for the add-method?

Thanks for help!

Can't add item using client object model of sharepoint 2010 with read only permission to user.



I have already developed Silverlight application in SharePoint 2010 using client object model.

But I have one scenario that user can comment on the item, so there is a update operation come in picture for user, but user have read only permission to site.

So please help me resolved this problem.

We can use Run with elevated privileges method in SP object model. I think Silverlight client object model don’t support this method.

Is there any alternative workaround to solve this problem?


How to get Audit/History Log of Document using Client Object Model 2010?


I want to get the history/audit log of particular Document in my Library. When was it updated, who did checkin/checkout  on which date on this file?


Is there a way to get these information using Client Object Model?

Ronak Patel

How to set Alert Me on Documents using Client Object Model 2010?

I can upload and update the document into Sharepoint Document Library, Now I want to set Alert Me property of the uploaded document, so, i can get notification when some one checkin, checkout or delete that document.

Is there a way to achieve this using Client Object Model?
Ronak Patel
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend