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