treeview expand client-side attribute

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i have a treeview
(id="trv")

i would like to do something like this:
trv.Attributes.Add("onexpand", "javascript:alert(this);");


i cannot make this work
i would like to know if this is the way I should do it, or should i
add some event somehow to each node


basically i would like to do some javascript action on each expand -
each (expanded) node
(later on collapse too)


i found this example in articles like this one:
http://p2p.wrox.com/topic.asp?TOPIC_ID=46824


basically i have somthing like this:


nodeSection.NavigateUrl = "javascript:showMenu('Section', " +
rowSection["ContractSectionId"].ToString() + ", " +
rowSection.GetChildRows("SectionToGroup").Length.ToString() + ");";


i would like to add an other feature like this, only this time i'd
like to do it on expand / collapse ...


thanks
 
Back
Top