469,342 Members | 6,660 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,342 developers. It's quick & easy.

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 3327
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

Post your reply

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

Similar topics

1 post views Thread by StvB | last post: by
8 posts views Thread by Donald Xie | last post: by
reply views Thread by Gary Shell | last post: by
1 post views Thread by Tim.Forbess | last post: by
6 posts views Thread by serge calderara | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by haryvincent176 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.