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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesDnnTree - canDnnTree - can't select nodes
Previous
 
Next
New Post
9/8/2011 9:17 AM
 
I've been trying to use the DNNTree Control but I can't get it to select a node when a user clicks on it...

Here is the best exampled I've come up with:
1.<dnn:DnnTree ID="DNNTreeTest" runat="server" PopulateNodesFromClient="true"
2.    CollapsedNodeImage="../../images/Plus.gif"
3.    ExpandedNodeImage="../../images/Minus.gif">
4.    <TreeNodes>
5.        <dnn:TreeNode ClickAction="None" Selected="true" Key="1" Text="Test1" Enabled="true" LeftHTML="abs" RightHTML="def"  />
6.        <dnn:TreeNode ClickAction="None" Selected="false" Key="2" Text="Test2" Enabled="false" />
7.    </TreeNodes>   
8.</dnn:DnnTree>

When this is rendered, neither node is selected and the second one isn't disabled... What am I missing? (I've even looked at the FileManager code but I don't see anything.)

My next test:
01.<dnn:DnnTree ID="DNNTreeTest" runat="server" PopulateNodesFromClient="true"
02.    CollapsedNodeImage="../../images/Plus.gif"
03.    ExpandedNodeImage="../../images/Minus.gif"
04.    CheckBoxes="true" CheckBoxMode="SingleSelect">
05.    <TreeNodes>
06.        <dnn:TreeNode ClickAction="None" Selected="true" Key="1" Text="Test1" Enabled="true" LeftHTML="abs" RightHTML="def"  />
07.        <dnn:TreeNode ClickAction="None" Selected="false" Key="2" Text="Test2" Enabled="false" />
08.    </TreeNodes>   
09.</dnn:DnnTree>
Note that in this one, I put in CheckBoxes so you can at least see that a node is selected, but I would like to highlight the node to make it simpler to the user. Ideas?
 
New Post
12/29/2011 4:08 PM
 

So, it's been 2 months and no answer... Maybe this is posted in the wrong place?

Does the DNNTree control require jQuery to function or javascript in general? (for the selection highlight)

Now I've added a DnnTree to a DataGrid EditTemplate and it doesn't even Render =/
(I think I'm making this harder than it is but I'm lost currently...)

 
New Post
12/29/2011 4:49 PM
 

FINALLY!!! I ended up putting a search engine on the DotNetNuke Source code and looked for the CSS class name... after a little bit of digging, I found there is a module.css in the same folder as the filemanager module... Then I searched for module.css and found in the "WhatsNew.ascx" file that DotNetNuke added the automatic loading of module.css within the module directory.

So, for a quick test I copied the module.css from the filemanager to my local modules' source directory and BOOM - it works! I got highlights and selected CSS styles applied!!!

3 Months, but I found the solution!!! =D

 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesDnnTree - canDnnTree - can't select nodes


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