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 ForumsClientAPIClientAPITreeview Multi-SelectTreeview Multi-Select
Previous
 
Next
New Post
7/7/2006 7:44 PM
 

Is there a way for me to have a multi-selectable Treeview that works in one of the following two ways:

Does not show checkbox next to top level group, only for sub items (in this case forums and not groups)

Is it possible to have when the group checkbox is clicked to select all forums within that group that are shown?

Thanks

 


Chris Paterra

Get direct answers to your questions in the Community Exchange.
 
New Post
7/10/2006 5:07 PM
 

First one, no.

Second one, yes.

For each node that contains children you will need to add the following code during population.

objTreeNode.JSFunction = "checkAllChildren(""" & objTreeNode.Key & """)"

Then in your js file you will need something lithe following.

 

function checkAllChildren(sId)

{

var oTree = dnn.controls.controls['MyDNNTree'];

var oTNode = oTree.selTreeNode;

for (var i=0; i<oTNode.node.childNodeCount(); i++)

{

var oNewNode = new dnn.controls.DNNTreeNode(oTNode.node.childNodes(i));

oTree.selectNode(oNewNode);

}

}

 

 

Note: A recursive call is not necessary, since the selection of a node that contains children will invoke its own function call.  Also note that I have hardcoded the name of my tree control in this script (MyDNNTree).  This is not adviseable for a real module, you will need to determine the name via the ClientID property on the server-side.

If you have any questions feel free to contact me.

 


 
New Post
7/14/2006 4:35 PM
 

Does this mean I would have to alter the js file on every single install which has the forums installed?

Just curious if you think there is a better/different way to achieve something like this in a situation like the forum module where i distribute to thousands but cannot alter the js file on distro.

Thoughts?

 


Chris Paterra

Get direct answers to your questions in the Community Exchange.
 
New Post
7/17/2006 9:53 AM
 

edit: Sorry, I posted an answer to another thread here.   Changing now.

I am not sure I understand you question.   I am definitely not suggesting altering any existing js, rather including a forum specific js file (or including js in your ascx page, though the separate js file would be better since it could be cached).  

Note:  I may add something to the tree module in the future to make this easier.

 

 


 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPITreeview Multi-SelectTreeview Multi-Select


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