473,404 Members | 2,195 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

tree view with XML and Populateondemand

dear all,
I have a tree view control bound to xml file and I am using
XMLDataSource comntrol connect to XML file. I set the Populateondemand
property of the Tree View control to True. But I think the XML file is
taken fully at the first loading.

I have'nt writen any code in the populateondemand event handler.
I dont know if it needs some code.

Actually I want to get data of the xml parts by parts as needed.

If any one knows how to use xml with tree view with populate on demad

Hope your help.
Thnak you all.
Below is my code
================================================== =====================

<asp:TreeView ID="trvDirectory" runat="server"
DataSourceID="XmlDataSource1" ExpandDepth="1"
Font-Bold="False" ForeColor="#0066CC" ImageSet="Simple"
NodeIndent="15" ShowLines="True"
Target="fmeDetails" Font-Underline="False">
<ParentNodeStyle Font-Bold="True" />
<HoverNodeStyle BorderColor="#0066CC" BorderWidth="1px"
Font-Bold="True" Font-Underline="False" />
<SelectedNodeStyle Font-Underline="True"
HorizontalPadding="0px" VerticalPadding="0px" />
<NodeStyle Font-Names="Tahoma" Font-Size="10pt"
HorizontalPadding="10px" NodeSpacing="0px"
VerticalPadding="0px" Font-Bold="True" />
<DataBindings>
<asp:TreeNodeBinding DataMember="folder"
ImageToolTipField="dr_Remark"
ImageUrl="~/Images/Msc/Folder-closed16.gif"
NavigateUrlField="dr_DtlsUrl" TextField="dr_Name"
ToolTipField="dr_Remark" />
<asp:TreeNodeBinding DataMember="directory"
SelectAction="Expand" Text="Directory"
Value="Directory" />
</DataBindings>
<LeafNodeStyle Font-Bold="False" />
</asp:TreeView>
<asp:XmlDataSource ID="XmlDataSource1" runat="server"
DataFile="~/App_Data/XML/Directory/DirectoryFolderTree.xml"
EnableCaching="False"></asp:XmlDataSource>

Sep 30 '06 #1
0 1381

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Tree menu using XML | last post by:
I have one XML file that has nodes and sub node and each and every node has the attribute call visible if its value is true then diplay this node else don't display thid node, but this condition i...
1
by: Jesper DK | last post by:
Hi, I have docked a tree view to the left on a form. When I start to populate this tree view with nodes, a horizontal scroll box appears in the bottom of the tree view even though thee tree...
3
by: Saradhi | last post by:
Hi All, Here I am facing a performance problem with the TreeView Node renaming. I am displaying a hierarchy Data in a treeview in my Windows C# Application. My tree view represents an...
10
by: dwok | last post by:
Does anyone know of a good article that discusses creating a "Tree View" control in ASP.NET? Or perhaps a Tree View Control that comes with source code? I have come across a lot of tree controls...
0
by: rinishrk | last post by:
Hi, I have a web application that contains subfolders Admin and User with related webpages inside them. Within the Admin folder I have a page containing a Tree View Control.I want this tree view...
0
by: teju | last post by:
Hi all, I am trying to populate tree view from the database. Till two levels i can populate it fine but when it reaches third level it doesn't expand. Below is the code, it has been taken from the...
3
by: gmail | last post by:
Hi Friends, Can any body suggest me on this. I am working on .NET 2005 Frame work 2.0 . I am facing problem using the tree stucture. I created the site map.Now i want use the site map in every...
0
by: jakki | last post by:
i want to populate a data from a data base.. i wrote a code for webapplication aspx.cs.. which is perfectly work's code is protected void Page_Load(object sender, EventArgs e) {
0
by: Zuhaib Hyder | last post by:
TreeView node selection not working with PopulateOnDemand, any idea?? i want to select each node on click... even when any file opens in right frame in response of click on Treeview node on left...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.