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 ForumsClientAPIClientAPIExcuse me! I DonExcuse me! I Don't find "objTreeNode.ImageIndex = eImageType.Page"
Previous
 
Next
New Post
7/14/2008 6:29 AM
 
 
 
Excuse me,Please.
My English is poor.but I have a problem. I study your article http://www.adefwebserver.com/DotNetNukeHELP/DNNTree/
It's great.
 
but I dont's find the "
 
Private Sub PopulateChildrenTreeNodes(ByVal objParent As TreeNode)
Dim index As Integer = 0
Dim objTreeNode As TreeNode
index = objParent.TreeNodes.Add()
objTreeNode = objParent.TreeNodes(index)
objTreeNode.Text =
"Super-Simple Module (DAL+)"
objTreeNode.NavigateUrl =
"http://www.adefwebserver.com/DotNetNukeHELP/DNN_ShowMeThePages/"
objTreeNode.ImageIndex = eImageType.Page
objTreeNode.ClickAction = eClickAction.Navigate
index = objParent.TreeNodes.Add()
objTreeNode = objParent.TreeNodes(index)
"

"objTreeNode.ImageIndex = eImageType.Page"  , although I find the enums in DotNetNuke.Modules.Admin.FileSystem namespace. but However I can't use the "objTreeNode.ImageIndex = eImageType.Page
" in vs2005.

 

My DNN version is 4.8.4
Thanks very much.
 
 
New Post
7/14/2008 9:43 AM
 

The image index works similar to the way the normal .net ImageList concept works, in that you can have a centralized property to manage all images for the control.  This helps to minimize the payload to the client.  For example, lets say that all images in every node are set to folder.gif.  Instead of each node passing down folder.gif, we place the image in the ImageList property and only reference each node's image to its corresponding index.

The nice thing about the control is you don't have to worry about the imagelist or indexes if you don't want.  The control will do it automatically before rendering.  Just change your code to specify the Image property instead.   Something like,

objTreeNode.Image = "page.gif"

 


 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPIExcuse me! I DonExcuse me! I Don't find "objTreeNode.ImageIndex = eImageType.Page"


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