473,795 Members | 2,746 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Tree view questions - Can I have more than one root? Can I de-link the current node?

Hello,

I am just looking at the tree view control, which looks very good, but
has some apparent limitations. This could easily be my lack of
experience with it. Specifically, I have two questions...

1) I would like to have more than one root for the tree. Although this
may sound odd, it can be logical in certain cases. For example, I have
some e-commerce sites where the navigational links are split into two
sections, one containing general site links (home, shopping basket,
contact, etc) and one for the product catalogue. This helps separate the
product pages from the support pages, making it easier for visitors to
shop.

I would like to use a tree view control for the product catalogue links.
I don't want one single root link, I just want the top-level categories
listed, with subcategories listed below them. Can I do this?
2) Is it possible to have the current page rendered as plain text, not a
link? It does not make sense to offer a link to the page they are
already viewing, and having it as plain text makes it clearer where in
the tree view they are. I couldn't see any option to render the current
node as plain text instead of a link. Is there one?

TIA
--
Alan Silver
(anything added below this line is nothing to do with me)
Nov 19 '05 #1
3 1590
Are you using the Treeview asp.net 1.1 or 2,0 version?
Patrick
"Alan Silver" <al*********@no spam.thanx> wrote in message
news:3v******** ******@nospamth ankyou.spam...
Hello,

I am just looking at the tree view control, which looks very good, but
has some apparent limitations. This could easily be my lack of
experience with it. Specifically, I have two questions...

1) I would like to have more than one root for the tree. Although this
may sound odd, it can be logical in certain cases. For example, I have
some e-commerce sites where the navigational links are split into two
sections, one containing general site links (home, shopping basket,
contact, etc) and one for the product catalogue. This helps separate the
product pages from the support pages, making it easier for visitors to
shop.

I would like to use a tree view control for the product catalogue links.
I don't want one single root link, I just want the top-level categories
listed, with subcategories listed below them. Can I do this?
2) Is it possible to have the current page rendered as plain text, not a
link? It does not make sense to offer a link to the page they are
already viewing, and having it as plain text makes it clearer where in
the tree view they are. I couldn't see any option to render the current
node as plain text instead of a link. Is there one?

TIA
--
Alan Silver
(anything added below this line is nothing to do with me)

Nov 19 '05 #2
>Are you using the Treeview asp.net 1.1 or 2,0 version?

2.0, sorry forgot to mention. Actually, I didn't know the control had
changed between versions!!
Patrick
"Alan Silver" <al*********@no spam.thanx> wrote in message
news:3v******* *******@nospamt hankyou.spam...
Hello,

I am just looking at the tree view control, which looks very good, but
has some apparent limitations. This could easily be my lack of
experience with it. Specifically, I have two questions...

1) I would like to have more than one root for the tree. Although this
may sound odd, it can be logical in certain cases. For example, I have
some e-commerce sites where the navigational links are split into two
sections, one containing general site links (home, shopping basket,
contact, etc) and one for the product catalogue. This helps separate the
product pages from the support pages, making it easier for visitors to
shop.

I would like to use a tree view control for the product catalogue links.
I don't want one single root link, I just want the top-level categories
listed, with subcategories listed below them. Can I do this?
2) Is it possible to have the current page rendered as plain text, not a
link? It does not make sense to offer a link to the page they are
already viewing, and having it as plain text makes it clearer where in
the tree view they are. I couldn't see any option to render the current
node as plain text instead of a link. Is there one?

TIA
--
Alan Silver
(anything added below this line is nothing to do with me)



--
Alan Silver
(anything added below this line is nothing to do with me)
Nov 19 '05 #3
Anyone have an answer here? Surely I'm not the only person using this
control?
Hello,

I am just looking at the tree view control, which looks very good, but
has some apparent limitations. This could easily be my lack of
experience with it. Specifically, I have two questions...

1) I would like to have more than one root for the tree. Although this
may sound odd, it can be logical in certain cases. For example, I have
some e-commerce sites where the navigational links are split into two
sections, one containing general site links (home, shopping basket,
contact, etc) and one for the product catalogue. This helps separate
the product pages from the support pages, making it easier for visitors
to shop.

I would like to use a tree view control for the product catalogue
links. I don't want one single root link, I just want the top-level
categories listed, with subcategories listed below them. Can I do this?
2) Is it possible to have the current page rendered as plain text, not
a link? It does not make sense to offer a link to the page they are
already viewing, and having it as plain text makes it clearer where in
the tree view they are. I couldn't see any option to render the current
node as plain text instead of a link. Is there one?

TIA


--
Alan Silver
(anything added below this line is nothing to do with me)
Nov 19 '05 #4

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

Similar topics

4
2832
by: Henry Jordon | last post by:
I have everything pretty much done but I need to fix something in my coding. I want to be able to enter strings such as "love", "hate", "the", etc. but am unable to figure how to do this. I have put my .cpp and my .h code below. Please help and thank you very much. // include files #ifndef BINTREE_H #define BINTREE_H #include <iostream> #include <iomanip>
7
1996
by: sugaray | last post by:
the binary search tree node here contains another structure as it's data field, programs did successfully work when data field is int, char, this time i got stucked, don't know why ? if there's something to do with dynamic data object ? thanx for your help. ================== begin of code ============================== #include <stdio.h> #include <stdlib.h>
15
5101
by: Foodbank | last post by:
Hi all, I'm trying to do a binary search and collect some stats from a text file in order to compare the processing times of this program (binary searching) versus an old program using linked lists. I'm totally new to binary searches by the way. Can anyone help me with the commented sections below? Much of the code such as functions and printfs has already been completed. Any help is greatly appreciated. Thanks,
0
3317
by: John H. | last post by:
In effort to understand (Outlook) MAPI folder tree structure wrote simple linear code below to navigate tree. Successive "...Folders.GetNext()"'s return same folder at all levels of tree. What am I doing wrong or not understanding? Thanks.
10
2532
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 for ASP.NET however most of them are already compiled and don't come with source code. I am really just looking for an example on how to create my own Tree Control. Thanks a bunch.
3
3322
by: mikelbell2000 | last post by:
I am attempting to write a query that will traverse the relationships for tables in my database that will provide me the order in which I need to perform delete operations to avoid running into foreign key constraints. I have determined the delete order manually, but since the database is complex and always having to structures added to it as the scope of the application grows, I was looking for an automated approach. I tried modelling...
2
3488
by: Kiran | last post by:
Hello all, I am using a tree to display stuff, and it is constantly updated, but what I have noticed is in the lowest level, there is clearly noticable cutoff of the text I place there. The cutoff is existent even if I do not update the text inside the tree constantly. It seems that the text is halfway below where it should line up. I tried placing an image to see if that would correct it, but it does not. The image is perfectly lined up,...
0
1432
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 to have nodes for all pages in the website. However it seems that I cannot create child nodes within this tree view for pages that exist outside the Admin folder.(i.e.pags within the User folder or the Root folder ).It gives me an errors stating...
8
2642
by: slizorn | last post by:
Hi guys, I have this coding that I wanted to try out. Basically this is meant to be done in Java as practice for the Topic trees in data structures and algorithms. I have recently learned C++ on my own so I wanted to test my skill in C++ by tryin to solve this problem using C++. so yea here it goes... i have a text file as follows... H,E,L E,B,F
2
7380
by: cioccolatina | last post by:
Hey guys, is there anyone who could help me..? I have file ExpressionBinaryTree.java : /** class ExpressionBinaryTree * uses a binary tree to represent binary expressions * does not implement BinaryTree - all iterators return String */ package foundations;
1
10163
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10000
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9040
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6780
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5436
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3722
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.