Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New Coder
    Join Date
    Feb 2005
    Posts
    47
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Adding onclick behavior to treeview images

    hello,

    im working on an app that uses a treeview control for a portion of the navigation i needed to fire an onclick event when the user clicks any text in the treenodes. i accomplished this by adding a span as the text string with the event added like so

    Code:
      tn1.Text = "<span onclick=""javascript:parent.regpage(this.parentElement.getAttribute('href'));"">" & boundvalue & "</span>"
    this works as expected(in ie) but my problem is that I cant seem to get the event to fire when a user clicks an icon image in the treeview rather than the text link. is there a way that i can wrap this before binding? I dont guess the treeview allows template fields.

    any thoughts?
    Last edited by werD; 02-22-2007 at 10:19 AM.


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •