This is a migrated thread and some comments may be shown as answers.

Having RadTreeView pass custom variable to JavaScript AfterClientCheck event

0 Answers 50 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 26 Jan 2009, 06:48 AM
I have several TreeViews on a page and I would like to have a single JavaScript function called by all of them (when a user checks an item).  For example, I'll have a <div> tag on top of each TreeView.  When the user clicks a checkbox in any of the TreeViews, the TreeView will fire an AfterClientCheck event to call the single function.  This function would then figure out what the div ID is for that TreeView and update the div text with the checkbox change. 

When I create all these TreeViews, I'll somehow attach the ID of the <div> tag that lives above it.  I've looked at attributes.  But, I want to attach a single attribute (that holds the div's ID) to the whole TreeView.  This attribute would hold the ID of the div tag.  

Can I make an attribute for the entire TreeView?  If not, how can I attach a custom value to the TreeView that can be read in its events?
   
Thanks

No answers yet. Maybe you can help?

Tags
TreeView
Asked by
James
Top achievements
Rank 1
Share this question
or