Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
The best choice for your web site host, email hosting, and domain registration.
 


  Sponsors  

Meet Our Sponsors

Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
Click here to go to dev.live.com for Windows Live developer resources
SteadyRain
DataSprings - Great Ideas. Always Flowing.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! (Pro...  How does one grab the node text click event in the dnntree control?
Previous Previous
 
Next Next
New Post 6/23/2008 2:38 PM
User is offline andyah
30 posts
10th Ranked


How does one grab the node text click event in the dnntree control? 

Hey folks:

First of all, it was great meeting the guys on the core team during OpenForce.  It wasn't a big show, but it was a great opportunity and learning session.

Now to my problem.  We have decided to use as many of the DNN controls as possible, since we are building our app using DNN, it makes sense.  We're moving from Infragistics controls (ugh).  Anyway, I build a one-level tree of students. Here's how I describe the node for each student:

 

Dim onode As New DotNetNuke.UI.WebControls.TreeNode(snodename)"Click to access student report card"

onode.ImageIndex = eImageType.File

onode.Key = dr.GetString(dr.GetOrdinal(

onode.ClickAction = UI.WebControls.eClickAction.PostBack

onode.HasNodes =

"Student_id"))False

treeStudents.TreeNodes.Add(onode)

The above never traps the Node_Click event!  I get a postback, but there is no information on the postback that allows me to figure out the current selection. Can someone point me to a code example where the click event is successfully trapped?  Do I need to use Javascript for a 100% server-side event?

Thanks in advance for yer help.

onode.ToolTip =

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! (Pro...  How does one grab the node text click event in the dnntree control?
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


PartnerPoint - Microsoft Technology Community
PartnerPoint is one of the largest online communities of Microsoft Partners Worldwide. With over 5,000 active members, it serves as a collaboration platform for other technology communties around the globe
www.partnerpoint.com
Web Valley
Website design, Database development
www.webvalley.com
UK DotNetNuke CMS installation, hosting & support
UK based installation, branding, customising, integration, hosting, training, support and maintenance services for DotNetNuke
www.deburca.co.uk

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP