Hi there,
I couldn't find a way to hookup the eventhandlers for - controls inside the global node template. I already read the following post:
http://www.telerik.com/community/forums/thread/b311D-dgcba.aspx
But, from my understanding of the posting, the article refers to hookup to the event of a single LinkButton. In my scenario however, I have a global template and therefore, every node contains (in my case) three ImageButtons and each ImageButton in each node should fire an event.
I tried to hookup the events in the NodeDataBound eventhandler of the treeview like this:
((ImageButton) e.Node.FindControl("ibAddQuery")).Command += ibAddQuery_Click;
This command works and a (async) postback is also being raised, but the execution doesn't step into the eventhandler ibAddQuery_Click (btw, the name is misleading but the method signature is correct).
Could you point out what I am missing or propose another (better and working) solution?
Best regards
Thomas
I couldn't find a way to hookup the eventhandlers for - controls inside the global node template. I already read the following post:
http://www.telerik.com/community/forums/thread/b311D-dgcba.aspx
But, from my understanding of the posting, the article refers to hookup to the event of a single LinkButton. In my scenario however, I have a global template and therefore, every node contains (in my case) three ImageButtons and each ImageButton in each node should fire an event.
I tried to hookup the events in the NodeDataBound eventhandler of the treeview like this:
((ImageButton) e.Node.FindControl("ibAddQuery")).Command += ibAddQuery_Click;
This command works and a (async) postback is also being raised, but the execution doesn't step into the eventhandler ibAddQuery_Click (btw, the name is misleading but the method signature is correct).
Could you point out what I am missing or propose another (better and working) solution?
Best regards
Thomas