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  |  

$4.95 Windows Hosting at Webhost4life.com
  Ads  
Iron Speed Designer is a software development tool for building database, reporting, and forms applications for .NET without hand-coding.
 


  Sponsors  

Meet Our Sponsors

Salaro -- Skins and more
OnyakTech
CrystalTech Web Hosting™
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.
SteadyRain
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  ClientAPI Compo...  Tree Control in DNN
Previous Previous
 
Next Next
New Post 5/15/2006 2:29 PM
User is offline Dylan Barber
651 posts
7th Ranked


Re: Tree Control in DNN 

Okay adding child nodes now - not quite sure if the logic is correct but it works!

 

Now how do I add the clientAPI postback/callback stuff to a node?  If I can figure this out this will be almost complete

 
New Post 5/16/2006 10:23 AM
User is offline Dylan Barber
651 posts
7th Ranked


Re: Tree Control in DNN 

Well I thought I had this all working now in a new non testing project(module) I cant seem to get items into my tree

Heres some code - can someone point out my flaw?

Private Sub LoadCategories()

Try

'Create a loop that will load the needed records

Dim eNodeNumber As Integer

Dim objTreeNode As DotNetNuke.UI.WebControls.TreeNode

Dim eHelpControl As New eHelpController

Dim eHelpList As ArrayList

eHelpList = eHelpControl.Codegalaxy_eHelp_Get_Category_List(0, ModuleId)

For Each eItem As eHelpInfo_Category In eHelpList

objTreeNode = New DotNetNuke.UI.WebControls.TreeNode '(CType(eItem.Id, String))

objTreeNode.Key = CType(eItem.Id, String)

objTreeNode.ToolTip = eItem.CategoryName

objTreeNode.Text = eItem.CategoryName

objTreeNode.ClickAction = DotNetNuke.UI.WebControls.eClickAction.Expand

eNodeNumber = Me.eHelpTree.TreeNodes.Add(objTreeNode)

Next

Catch exc As Exception

ProcessModuleLoadException(Me, exc)

End Try

End Sub

 
New Post 5/17/2006 7:46 AM
User is offline Jon Henning
1623 posts
www.codeendeavors.com
5th Ranked










Re: Tree Control in DNN 

Couple things I would try to troubleshoot this. 

1)  Have you debugged the code and verified that the nodes are indeed being added?

2)  If you do a view source on the outputted page, do you see the trees xml in the __dnnVariable hidden control?

3)  Are you running against the same code as you were in your tests mentioned above (i.e. same version of webcontrols, and dnn)?


 
New Post 5/17/2006 1:10 PM
User is offline Dylan Barber
651 posts
7th Ranked


Re: Tree Control in DNN 
Yeah i finally got it all figured out - thanks for the suggestions though it was looking at the xml that finally brought it to light for me
 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  ClientAPI Compo...  Tree Control in DNN
 


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.

 


IHostASP.NET Provides the Ideal DNN Hosting
We will help you with the installation, configuration, and troubleshooting of your DNN portal, no task is too big or small for us. Unlike other companies we are not just providing a reliable hosting service, but we are also focused on providing the best DotNetNuke hosting service on the internet.
www.ihostasp.net
$7.16/mo - Powerful DotNetNuke / DNN Hosting
Powerful DotNetNuke / DNN Hosting on Windows 2008 and 2003 servers, starting at under $8/mo with FREE SQL 2008 on certain plans and FREE SQL 2005 on all plans with FREE Installation and expert support.
www.re-invent.com
ASP.NET Web Hosting for $3.95
3 Month FREE ASP.NET Hosting! FREE Setup! DNN Support! FREE Domain Name! FREE Components! Host multiple websites on 1 plan! 30 Days Money Back Guarantee!
www.dailyrazor.com

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