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 ForumsClientAPIClientAPIrequest for change of treeView control in DotNetNuke.WebControlsrequest for change of treeView control in DotNetNuke.WebControls
Previous
 
Next
New Post
9/10/2009 9:08 AM
 

I have no idea where to ask so start here....

Can anybody help me with my issue ?

I need to show treeView as site navigation that looks like MSDN navigation tree (see for example msdn.microsoft.com/en-us/library/ywdtth2f.aspx)

as I though about it deeper it would be nice enough to create:

one new property DisplayFolderImage (true/false).

Then if U will set  in skin   NodeCollapseImage="~/images/minusBig.gif"     NodeExpandImage="~/images/plusBig.gif"     NodeLeafImage="~/images/nodeDotBig.gif"  DisplayFolderImage =false

then update source TreeNodeWriter.vb, function RenderExpandNodeIcon

 

If _Node.HasNodes Then

'...normal process and code as is

 

else

if DisplayFolderImage then

' normally create space instead of expand collapse image (eg.

end if

end if

so no space will be rendered if no folder image is displayed. This causes very nice effect where open and close folder icon disappears, only plus and minus is shown and leaf Node can have either MSDN leaf node symbol or custom image (as in Host and Admin menu). this looks very nice, again as I cant post image to this forum I cant show you.... ;-(

 btw: javascript tree renders this menu different then TreeNodeWriter.RenderExpandNodeIcon, if ForceDownLevel="True" there is rendered space, when not it works as I desired it self ;-), but requres one more jscript file on client ;-(

 

 

RenderSpacer(writer, _Node.DNNTree.ExpandCollapseImageWidth)

writer.Write(" "))

 
New Post
9/10/2009 6:31 PM
 

I moved your request to a more appropriate Forum.

Jon is the developer of the Navigation Providers

 
New Post
9/11/2009 1:50 AM
 

thanx 4 help,

Ive tried to contact Jon on codeplex, but no response ;-(, so I try to use dnn forums.

Adam

 
New Post
9/11/2009 9:01 AM
 

Put an enhancement request in codeplex.

However, you should be able to do the same thing by simply specifying the DefaultNodeCssClass css style of display: none.


 
New Post
9/13/2009 2:58 AM
 

that is why I dont understand why I cant place picture into forum topic.....text description is in this situation long and hard to understand.

Changing DefaultNodeCssClass  to display:none solves nothing. U could try it yourself.

I need to have a 'dot' symbol before leaf node, aligned with expand and collapse symbols but tree control always places some span or div here.

so one solution is to create new property leafNodeInsteadExpandCollapseSymbol that would be placed for leaf nodes. Then you sugesstion could work.

But in this case U will lost very nice effect where nodes with specified LeafNodeImage (like in admin or host tree menu) will have their image instead of leaf point symbol only. I did change of tree control source and I can see now nice vertically alligned expand or collapse symbols with leaf node image, looks very nice. Simply all leaf nodes without specified image displays only leaf dot and leaf nodes with image displays its image but always aligned with expand collapse.

anyway, this is NOT my idea, reason why MSFT has removed folder open and folder close is that it only grabs space on screen and makes tree bigger. This option saves a lot of space, especially with deep treees as in MSDN.... please think about ergonomy....

 

Adam

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPIrequest for change of treeView control in DotNetNuke.WebControlsrequest for change of treeView control in DotNetNuke.WebControls


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