473,385 Members | 2,180 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.

How to handle event in customize rad tree node control? ASP.NET

ram09
45
I had made a tree view of folders in a rad tree view... I have added a text box with a button in one of my nodes, using this code

node.controls.add(txtbox)
node.controls.add(btn)

where, txtbox is my text box control and btn is my button control...

my problem is that I cannot handle the event of the button, when it is already inside the node.. Is there any way I can handle this event?? I already did some customized event for the button but it didnt even work...

I tried testing the button outside the node and it triggered the events that I had made, but when I put it inside the node it seems that the controls and the node are just treated as one...
Dec 4 '08 #1
5 3559
CroCrew
564 Expert 512MB
Hello ram09,

From my understanding this is a "Classic" ASP forum. Your question should be posted in the ".NET" section under Forums/Programming Languages/.NET

Sorry,
CroCrew~
Dec 4 '08 #2
ram09
45
ok sir...I'm really sory for that..
Dec 5 '08 #3
Hi there - not sure about the post above as the forum is under .net.

Anyway I have the same problem and wondering if you managed to solve this?
Dec 2 '09 #4
Frinavale
9,735 Expert Mod 8TB
The thread was probably moved to the .NET forum some time ago because it was not in the right place.

Events are raised to the Parent: the control that contains them.
In this case your parent is the Tree (or is it a Tree Node?). This means that the Tree (or TreeNode) would have to handle the event.

Since you do not have control over the Tree (or TreeNode) then you'll have to find another way around this.

Have you tried specifying the method that should be called during the OnClick event for the button?

If you're using VB.NET have you tried using the AddHandler Method to specify a the method that handles the event? If you aren't using VB.NET have you added a handler to the button for the Click Event?

-Frinny
Dec 2 '09 #5
Hi Frinny,

Thanks for you reply. Yes the method is registered but is not fired because of the reasons you have pointed out - there are some events off the TreeNode that may be useful and trying those out now.

-mobget
Dec 2 '09 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: StvB | last post by:
Hi, I just started implementing adding a new node to an existing tree. In these statements, I add the node itself and attach the "end of editing" event handler to the event -------- id =...
8
by: Donald Xie | last post by:
Hi, I noticed an interesting effect when working with controls that are dynamically loaded. For instance, on a web form with a PlaceHolder control named ImageHolder, I dynamically add an image...
0
by: Gary Shell | last post by:
I am experiencing some strange behavior between a UserControl's validating event and a treeview control. Initially, I thought it was related to an issue in the Knowledgebase article 810852...
3
by: Techsatish | last post by:
how to make a mouseup event called only once during a double click event? here double click is made on a tree node in a tree control. I have the code inside mouseup event....in runtime the...
1
by: Tim.Forbess | last post by:
Using asp.net 2.0 I have a web project with one page which contains 2 user controls. One user control is a message bar with a label control and the other user control that contains a treeview...
1
by: MrNobody | last post by:
by default when you right click a tree the control selects the node if you add a right-click event (so that I can put sepearate ContextMenus depending on what type of node the user clicked on)...
6
by: serge calderara | last post by:
Dear all, I was wondering is there is a way to customise the treView control in order to get any Control as a Node. What I try to do is having a Progress bar as a treeview node object. Is...
0
by: Marc Bartsch | last post by:
Hi, I have a WinForms application (C#, VS 2005) that consists of a treeview control and a notify icon. Below is a complete example of this application. The treeview has one root node and one child...
1
by: hemantkamb | last post by:
Hi…. I have created one website with Master and content page . I have taken TreeView Control on master page. And I wants that when I click to tree node the value of tree node is added to...
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.