Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > treeview expand client-side attribute

Reply
Thread Tools

treeview expand client-side attribute

 
 
=?Utf-8?B?U3dvb3No?=
Guest
Posts: n/a
 
      04-20-2007
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.T oString() + ");";


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


thanks



 
Reply With Quote
 
 
 
 
David
Guest
Posts: n/a
 
      04-20-2007
I just been trying to fix one of my own issues (styling the treeview). I
found this site, then looking on the list of articles, found this link.

http://www.java2s.com/Code/ASP/Compo...ctionVBnet.htm

Perhaps just what you want. It seems there is an onexpand attribute that you
can already use.

--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available



"Swoosh" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>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.T oString() + ");";
>
>
> i would like to add an other feature like this, only this time i'd
> like to do it on expand / collapse ...
>
>
> thanks
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Maintaining treeview expand collapse status per node? Edwin Knoppert ASP .Net 1 11-09-2005 03:09 PM
Expand TreeView programmatically (ASP.NET 2.0) Karim El Jed ASP .Net 4 10-07-2005 06:04 AM
asp.net 2.0 treeview control expand with select Stephen ASP .Net 2 08-24-2005 03:07 PM
Expand Treeview =?Utf-8?B?SHV0dHk=?= ASP .Net 5 01-14-2005 02:55 PM
urgent please : treeview control expand collapse Gönen EREN ASP .Net 4 08-16-2003 06:15 PM



Advertisments