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  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
 


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
1622 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.

 


Software Development and Integration with DNN
HNP Solutions focuses on the pragmatic use of technology and process to meet an organization's business objectives. HNP Solutions employs seasoned Enterprise and Solution Architects, Delivery Managers and QA & Business Leads. Our capabilities range from project assessments & recommendations, design & code reviews, to full program implementations. We also work with organizations in need of senior staff augmentation purposes in the areas of Enterprise and Solution architecture.
www.hnpsolutions.com
Alki Homes - Seattle, WA
Exemplary service for your Seattle Real Estate needs. It's what you deserve from your Realtor®!
www.alkihomes.com
PointClick DotNetNuke Solutions
PointClick Technologies provides high-end DNN Hosting for businesses.
PointClick.Net Hosted Solutions

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