473,659 Members | 2,656 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1973
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
2809
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 want to do. I just want to know how I should toggle the visibility of divs in Netscape (I'm using 7). For example, say I have the following HTML code:
6
3078
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. Is this doable? Also, it seems that the TreeView nodes do not have a click event. Is that correct? Thanks, J.S.
5
3908
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) but only sometimes. Other times it appears behind the parent form and all that is visible is the last few characters of that row. Anyone know what might be causing this and how I can fix it? Thanks.
1
2926
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. I have tried to set the button's visibility in Page_Load (after data binding), but I get a NullReferenceException stating that "Object reference not set to an instance of an object".
3
1615
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 "Edit Item", i show a list of items they can select. once selected, i show the input form, which has all the item details. conversely, if the user selects "Add Items", i skip showing the "Select Item" drop down and go straight to showing the item...
4
1656
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 there a way around this? Jon Cosby
2
1771
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: "Click and drag to resize. Double click or press 't' to toggle visibility."
1
1956
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 making all the others div elements in the array, hidden. thisDocId is the element to avoid hiding. This is the script: <script>
5
2030
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 you can't make them depend on each other. You don't describe what this "thing" you are doing is. But it's bad design to have some "thing" you do in response to user input like this be something that can't be done repeatedly. For example, any...
0
8332
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8851
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8746
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8525
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
7356
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
5649
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
4175
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
4335
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1975
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.