473,513 Members | 2,421 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

treeview control

Hi
I want to use the tree view control.
I downloaded the IE Web controls from net.
I load the tree nodes dynamically wirh value from database.
I was not able to handle the clickl event of a node selected.
When a node is clicked i don't want the page to refresh.
Do I nedd to use java script?
Is there any other alternative?
Thanks
Priya
Nov 18 '05 #1
3 1337
why is the page refreshing after cicking a NODE!!
Post ur code!
"Priya" wrote:
Hi
I want to use the tree view control.
I downloaded the IE Web controls from net.
I load the tree nodes dynamically wirh value from database.
I was not able to handle the clickl event of a node selected.
When a node is clicked i don't want the page to refresh.
Do I nedd to use java script?
Is there any other alternative?
Thanks
Priya

Nov 18 '05 #2
Hi, thanks for the reply. There is a tight coupling between my database and
my tree. I refresh the tree from the database when I do a complex operation
such as delete a subtree or move a subtree from one location in the tree to
another.

When I repaint the tree from my database datatable, I store the fullpath for
every node created in my datatable. So after refreshing the tree, I know the
full path of the node I want to go back to. I am just confused about how to
use the tree.selectednode command to actually select the node.

If I know the full path of the node I want to select programatically, how
can I command it to be selected?

What is the format of the tree.selectednode command to go to a particular
fullpath position in the refreshed tree??

Fred

"Patrick.O.Ige" wrote:
why is the page refreshing after cicking a NODE!!
Post ur code!
"Priya" wrote:
Hi
I want to use the tree view control.
I downloaded the IE Web controls from net.
I load the tree nodes dynamically wirh value from database.
I was not able to handle the clickl event of a node selected.
When a node is clicked i don't want the page to refresh.
Do I nedd to use java script?
Is there any other alternative?
Thanks
Priya

Nov 18 '05 #3
Priya,
Try posting your question to:-
microsoft.public.dotnet.framework.aspnet.webcontro ls
I used the treeview for 2 menus one populated with XML(statically) and
the other from Database(dynamically).
And i never had a problem of the page refreshing!
Do you have another page u use the menu with containing Jscript?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #4

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

Similar topics

5
19868
by: SoKool | last post by:
Can anyone point me to a site where I can get a free treeview control to use in ASP .NET or any tutorial that can help me build my own treeview control. I intend to use a treeview to generate a...
8
4392
by: Hrvoje Voda | last post by:
What is wrong in this code? private void tree_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e) { if (e.KeyCode == Keys.Enter ) {
3
2817
by: Peter | last post by:
Hello, We are inserting a side menu to our application using a class that is writing HTML on all our pages. This is a part of the code as an example: writer.Write(" <table WIDTH=""100%""...
4
14163
by: Ben Coats | last post by:
Hey, I'm trying to find code for an Explorer-style Directory ComboBox. (You know, it display "Desktop", "My Computer", all drives, etc., but it has a treeview control inside the combobox so that...
10
2331
by: p3t3r | last post by:
I have a treeview sourced from a SiteMap. I want to use 2 different CSS styles for the root level nodes. The topmost root node should not have a top border, all the other root nodes should have a...
1
2540
by: musosdev | last post by:
Hi guys I was using the Microsoft.Web.UI.WebControls extra namespace in my application to provide me with a TreeView control. I was using specifically ..GetNodeFromIndex(), SelectedNodeIndex and...
2
1565
by: rolf.oltmans | last post by:
Hello all, I need to place treeview control in Grid control. I need to place it in a grid because I need to show calendar against every node. Is placing a treeview in grid possible? If I need...
1
4901
by: doemon | last post by:
Hi, I'm working on a pagination control and I need to dynamically rerender a treeview to display the next set of nodes depending on which page we're on. For example, page 1 will dispaly only...
0
1976
by: noneya22 | last post by:
I want to use a TreeView control as a one-level, vertical navigation menu. I'm using this control currently with a SiteMapDataSource and .sitemap file. I've written code that associates an image...
0
12773
by: jiing | last post by:
Hi all, I want to use sting(the same as Node.Text) to judge if a node exists in TreeView. I've tried several ways, but seems all failed. could anybody help me? Thanks in advance. //My...
0
7166
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
7543
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
7534
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...
1
5094
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4749
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...
0
3236
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...
0
1601
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 ...
1
805
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
459
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...

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.