treeview expand client-side attributes
Tech-Archive recommends: Fix windows errors by optimizing your registry
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
thanks
.
Relevant Pages
- Re: TreeView Dynamic XML Binding
... As for the TreeView page, would you provide some further information, such ... you can try put the Xml file path setting code into the ... You can do this by setting the SelectAction to Expand when you databind ... When I click on the tree node for the select ... (microsoft.public.dotnet.framework.aspnet.webcontrols) - Re: TreeView Dynamic XML Binding
... By monitoring the treeview child nodes when I explicitly set the XmlDataSource.DataFile, I determined that the process is actually using the PopulateOnDemand processing. ... I'm going to put the xml document into a session variable. ... It seems as if the default settings are doing the populate on expand ... otherwise the entire tree reset. ... (microsoft.public.dotnet.framework.aspnet.webcontrols) - Re: Dynamic TreeView loses PopulateOnDemand
... subsequently on expand the child nodes are retrieved once ... I'm working on a pagination control and I need to dynamically rerender ... a treeview to display the next set of nodes depending on which page ... the tree will display nodes 11 to 20. ... (microsoft.public.dotnet.framework.aspnet) - Re: TreeView expanded size
... I want to expand the panel control that holds the treeview. ... (microsoft.public.dotnet.framework.windowsforms.controls) - Re: Treeview bug : Select top visible item but itself?
... I would be happy to help, could you post some working code so I can take a ... Tom Krueger ... > (top of treeview) ... the bug happens when you expand Category 2. ... (microsoft.public.dotnet.framework.compactframework) |
|