Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPITree Control in DNNTree Control in DNN
Previous
 
Next
New Post
5/15/2006 4:29 PM
 

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


Dylan Barber http://www.braindice.com - Dotnetnuke development classes - skins and modules
 
New Post
5/16/2006 12:23 PM
 

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


Dylan Barber http://www.braindice.com - Dotnetnuke development classes - skins and modules
 
New Post
5/17/2006 9:46 AM
 

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 3:10 PM
 
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

Dylan Barber http://www.braindice.com - Dotnetnuke development classes - skins and modules
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPITree Control in DNNTree Control in DNN


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out