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

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

Populate SharePoint Lists To TreeView

Posted By:      Posted Date: September 17, 2010    Points: 0   Category :SharePoint
Hi, Doese anybody know's how to populate a treeview with a sharepoint site? Ex: site name: http://server/site_name +http://server/site_name  |  |--+List Name 01  |  |--+List01 Item 01  |  |--+List01 Item 02  |  |--+List01 Item 03  |--+List Name 02  |  |--+List02 Item 01  |  |--+List02 Item 02  |  |--+List02 Item 03  |--+List Name 03  |  |--+List03 Item 01  |  |--+List03 Item 02  |  |--+List03 Item 03  |--+List Name 04  |  |--+List04 Item 01  |  |--+List04 Item 02  |  |--+List04 Item 03 From the specific site, i need to get all the lists and in every list all the items, displayed as a tree view. I kinda know how to populate the items to the treeview or get the lists names and items names. My big issue is how to keep track of those? For example i want to add a popup menu to the treeview and display diffreent options in the meneu by the type of the node user select? If the selected node is a list for example (list name) the user will have a, b, c options on the popup menu. If the selected node is an item in the list user will have x, y, z options on the popup menu. Then if i select a node that is a list name and

View Complete Post

More Related Resource Links

Displaying SharePoint lists in Web Parts

When you create a built-in or custom list in Microsoft Windows SharePoint Services, Windows SharePoint Services creates a Web Part, a basic building block of a SharePoint site, to display that list. These Web Parts are called List View Web Parts. Windows SharePoint Services stores List View Web Parts in the site collection Web Part gallery. (The site collection Web Part gallery is the most central gallery of Web Parts for a work group. By default, the gallery name is the name of the site, such as "Our Team Site Web Part Gallery." )

SharePoint Tutorial - Lists

A list is a feature in SharePoint that stores a lists of information. For example, a list can be created to store web links in the human resources team site. A list is usually created for a specific type of information. Lists can contain metadata to describe the particular information in more detail and to make it easier to find.

Creating Sites/Lists/List Items under Current User Context in SharePoint By Using SPUserToken

Usually we do this by performing the action under RunWithElevatedPrivileges method and updating the listitem using SPListItem.SystemUpdate() method (see here). but this approach has its own flaws like (RunWithElevatedPrivileges will run under system account, we cannot use SystemUpdate for SPSite,SPWeb,SPList, since it runs under system we will "CreatedBy" by as SystemAccount).

Duplicate column names from forms in SharePoint lists



I'm in the process of migrating from a WSS 2 site to WSS 3/MOSS. On the old site I used an Infopath 2003 form for absence requests. During the migration I now use Infopath 2007. There wasn't any problem initially when the form was stored with the SharePoint form library. However, when I published the form as a content type from Infopath 2007 and then added that content type to the form library, there are two columns for each piece of data from the form. (One from the content type and one from the form list.) I relinked each old form (list content type) to the new AbsenceRequest content type and removed the original one from the list. However, the duplicate column names are still there. Since they came from the Infopath form, they are not editable or deletable from the SharePoint list management interface. The duplicate column names make it tough to build views since it isn't apparent which column to use in the form building UI. It can be determined form the overview display, but it is very cumbersome.


Does anyone know a way to get rid of the old, absolute, columns?

Developer Training: User Interfaces and Lists in SharePoint 2010

Learn about the new user experience in SharePoint 2010 and how you can use the new UI in your customizations. This training module also discusses improvements in list handling, including list relationships and new form-rending options.

Quick Note: Accessing Multiple SharePoint 2010 Lists by Using LINQ

In this exercise, you develop and deploy a visual Web Part that reads data from three lists by using LINQ queries and displays the results in a grid view control.

Quick Note: Add Event Receivers to SharePoint 2010 Lists

In this exercise, you add an event receiver to a custom Microsoft SharePoint 2010 list that is triggered when you attempt to delete an item in the list.

Quick Note: Create Lists with Custom Content Types in SharePoint 2010

Learn how to create a list in SharePoint Server 2010 and associate it with a new content type. Next, you disassociate the list from the content type and then delete the list.

Video: Connecting PivotTables in Excel 2007 to Data Stored in SharePoint Lists

Learn how to use the Open XML SDK 2.0 to create Excel 2007 PivotTables that are connected to data stored in SharePoint lists.

Video: The Access Show: Client Performance Improvements against SharePoint Lists

Today's guest is DJ Cole, architect and primary developer of SharePoint connectivity performance improvements on the Access development team. DJ dropped by to talk about how Access 2010 connects to SharePoint, and to discuss the work necessary for improving client-side performance. (Length: 13:05)

Video: SharePoint 2010 Lists, List Data, and CAML

This demonstration illustrates how to work with list data and the Collaborative Application Markup Language (CAML). (Length: 5:05)

Managing Lists On the Quick Launch Bar In Sharepoint 2010


Hi can somebody help please.

I am using Sharepoint Foundation 2010 and I need to use the "navigate function" that you use to have in MOSS 2007.

Basically I want to be able to move lists between different sub headers on the quick launch bar. In MOSS 2007 I use to be able to go into manage site settings and choos "navigate and then move the lists up and down between the sub headers that i created on the quick launch bar.

Anyone got any ideas



Populate Treeview upon entered criteria and page action without complete page posting on client side


1. I have a treeview on left side in a panel in my aspx page and I have a Text box and a Search button on the right panel. On entering a search criteria and clicking the Search button, I want to get the data needed for the treeview (FYI - I have a webservice call for that) and then populate the treeview completely but keep it collapsed to the root node.

  Each time I enter the search criteria and click the Search button, I don't want to post the entire page (and also don't like the page flicker), how can I achieve this? I know that in order to avoid complete postback upon Search button click, I can do so by client callback and get the data needed for the treeview, but in this case, I have to build the treeview nodes as table - row/cells and handle all the events and handlers myself, which I want to avoid (also means that I won't be able to take advantage of the inherent expand and collapse capabilities of the Treeview). On the other hand, if I use the OnTreeNodePopulate event handling of the Treeview control, using the C# script code on the aspx markup, it doesn't recognize the entered criteria in the Text box. So either way,

Cross list query for two sharepoint lists and a join between the fields

Hello All, I have a requirement where i need to query the data from two  sharepoint lists  on a same site by doing a join between those lists and get the result into datatable.I am doing this using sharepoint object model.Is there any possibility to do this. Any pointers in the right direction are greatly appreciated. Thank you Smith   smith

How to get rid of the (More Links.) link on lists in SharePoint 2010?

I have a list of 5 items. The view settings are set so that the Item Limit is 20. I would like the eliminate the (More Links...) link under the list when the web part is on the page. I also tried setting the Toolbar properties to No Toolbar. Any ideas? Thanks.

how to Join two SharePoint Lists in SharePoint 2010

I have one Document Library and One List, just want display data from both based on ID in SharePoint 2010. Document Library : "Doc1" having following columns 1. ID (default column) 2. Title 3. Description 4. Image Url List : "List1" having following columns 1. RefID ( lookup column, refers the doc1 ID column) 2. Created By I want to display get data table for what are the ID's(items) created by me using CAML Query (SPQuery.Joins)  

Join two Lists/Library in SharePoint 2010

I have one Document Library and One List, just want display data from both based on ID in SharePoint 2010. Document Library : "Doc1" having following columns 1. ID (default column) 2. Title 3. Description 4. Image Url List : "List1" having following columns 1. RefID ( lookup column, refers the doc1 ID column) 2. Created By I want to display get data table for what are the ID's(items) created by me using CAML Query (SPQuery.Joins) Pls give me solution... Thanks in adv...
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