473,385 Members | 1,468 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,385 software developers and data experts.

TreeNode open & close clicking caption

Hi,
Im using an ASP.NET 2.0 TreeView control on a web page with an Xml
MapSiteMenu. Some nodes does'nt have url property (just acts as container of
other children nodes).

My question is:
Can i open and close a treenode without clicking on +/- image (but just
clicking on the treenode caption (title property) ?

Thanks, Andrea.
Jun 21 '06 #1
1 1487
I have found a solution to my problem.
Post ... to help other having same problem:

Just write am event handler for TreeNodeDataBound event and change Treenode
action property:

protected void TreeView1_TreeNodeDataBound(object sender, TreeNodeEventArgs e)
{
if (e.Node.NavigateUrl == "")
e.Node.SelectAction = TreeNodeSelectAction.Expand;
}
"Andrea" wrote:
Hi,
Im using an ASP.NET 2.0 TreeView control on a web page with an Xml
MapSiteMenu. Some nodes does'nt have url property (just acts as container of
other children nodes).

My question is:
Can i open and close a treenode without clicking on +/- image (but just
clicking on the treenode caption (title property) ?

Thanks, Andrea.

Jun 22 '06 #2

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

Similar topics

4
by: Gary Cobden | last post by:
Hi I am running an Access Database, and need to find - and close - any open instances of MS Excel using VBA Coding Does anybody have any sample code I know this is possible using VB and...
1
by: Jianren Lu | last post by:
Dear all, I put the PC's desktop to my TreeView list. The code is as follows. But the text of treenode is too long, I want to just put a shortname to the treenode, how can I do? if I just put...
1
by: naijacoder naijacoder | last post by:
Hi Guys, I have an application below that is treeview menu populated from the database which works with asp.net webmatrix.But when i put it into code behind in Visual Studio.Net it gives the...
5
by: Max | last post by:
Hi, I have written a small vb.net program that downloads a file through ftp and displays the progress of download on a form (kind of the one you see when you save file from the internet). The...
2
by: mark | last post by:
I put this question on a new thread because, in spirit, it is a new question. I apologize that I have difficulty formulating the proper question. My application performs matrix computations on...
8
by: tomsiw | last post by:
Hello, I am trying to create a user control which allows the user to enter a collection of items at design-time. Code example: public class MyControl : System.Windows.Forms.UserControl {...
1
by: adeebraza | last post by:
Hi, Every Body Following is code for Showing Actual Date & Time on the form and also record Date & Time of an event. See the following and use Call Modified when you want to record an event in...
4
by: Rob Stevens | last post by:
Is there some sort of unique identifier in every treenode that is consistent? I was looking at the handle of every treenode, but it appears that the handle changes everytime the tree is built. ...
4
by: =?Utf-8?B?MjJQb20=?= | last post by:
Hi All, This is all new to me so please be patient with me. What I have is a very large 'Al-In-One' program, not yet complete, that has over 70 Forms/Modules/Classes in it and needs to be...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.