473,396 Members | 2,098 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,396 software developers and data experts.

Toggle treeview visibility...

Using VS2005, ASP.NET.

Check out the tree view on this page:
http://msdn2.microsoft.com/en-us/lib....treeview.aspx
When you hover over the border between the two frames, a tooltip
displays: "Click and drag to resize. Double click or press 't' to
toggle visibility."

How can I implement this functionality? More specifically, I know that
I can use frames to get a treeview on the left and content on the
right... but how do I get the "Double click or press 't' to toggle
visibility" functionality to work?

Any pointers or code snippets would be greatly appreciated!

celoftis

Nov 27 '06 #1
2 1957
If you View Source, there are javascript event handlers for the
doubleclick event and a few other events on that div. Search for
"Double click" to find them. Then you'll have to find the javascript
that is being called there - there are several script files being
included at the top of the page.

You can't really do that with ASP.NET on the server side, since that
would require a Postback.

celoftis wrote:
Using VS2005, ASP.NET.

Check out the tree view on this page:
http://msdn2.microsoft.com/en-us/lib....treeview.aspx
When you hover over the border between the two frames, a tooltip
displays: "Click and drag to resize. Double click or press 't' to
toggle visibility."

How can I implement this functionality? More specifically, I know that
I can use frames to get a treeview on the left and content on the
right... but how do I get the "Double click or press 't' to toggle
visibility" functionality to work?

Any pointers or code snippets would be greatly appreciated!

celoftis
Nov 27 '06 #2
Eric,
Thanks for the info. I see the code in view source but of course the
javascript source is really what I'm missing.

Anyone have any suggestions on how to trap the 't' key that toggles the
visibility of the treeview? I suppose at this point I'm looking for
javascript or vbscript that will perform this funcition.

Nov 27 '06 #3

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

Similar topics

4
by: Jonathan | last post by:
Hi, I've read through quite a number of postings on here so far and have seen what look like very simply, reasonable answers to this question, however I am still completely unable to do what I...
6
by: J.S. | last post by:
I have a TreeView control in the left panel of a SplitContainer. When I click on various nodes in the TreeView I would like different sets of buttons and textboxes to appear in the right panel. ...
5
by: rh | last post by:
I created a user control that is made up of a TreeView and a VScrollBar. I set the TreeView.FullRowSelect = True and it works as expected (full row is visible, appears on top of everything else)...
1
by: Keith Harris | last post by:
Hi, I have a Repeater control which is bound to a dataset. In the footer of the repeater control, I have a Button whose visibility I want to vary according to the sum of a column being > 0. ...
3
by: Dica | last post by:
i want to set up my aspx page with a hierarchical navigation system. first the user has to select to "-- Select An Action --", which could be either "Add Item" or "Edit Item". If the user selects...
4
by: Jon | last post by:
I'm looking for a way to toggle text without using client scripting. One way to go is by the visibility property and a click event, but this does a postback and returns to the top of the page. Is...
2
by: hzgt9b | last post by:
Check out the tree view on this page: http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.tr... When you hover over the border between the two frames, a tooltip displays:...
1
by: swiftouch | last post by:
I'm getting an error message in FF2.0: document.getElementById(toggle) has no properties The goal of the script is, when I hover my mouse over an image, to make one div element visible while...
5
by: Peter Duniho | last post by:
On Sat, 27 Sep 2008 12:02:04 -0700, <timor.super@gmail.comwrote: You don't, not when you don't know that one event is necessarily going to follow another. If the events can appear alone, then...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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...
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.