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 ForumsClientAPIClientAPIDNNTree Clear All TestDNNTree Clear All Test
Previous
 
Next
New Post
9/20/2006 1:52 PM
 
Hi Jon... can you help me get started in learing to use the DNNTree? I have a DNNTree with checkboxes. How would i go about implementing a "Clear All Checkboxes" button, all done on the client? I would imagine this would be fairly simple, but not obvious from the documentation available now. Maybe a cookbook type example would be more help.

Thanks!

Jae

 
New Post
9/20/2006 2:57 PM
 
I believe my answer in this thread will get you going.

 
New Post
9/25/2006 7:26 PM
 
I saw that example. I sort of see how to call
oTree.selectNode(oNewNode);

to select a node and check its checkbox. however, i don't see an equivalent oTree.unselectNode() to
unselect and uncheck. how would one go about unselecting/unchecking?

thanks,
Jae

 
New Post
9/26/2006 9:48 AM
 

selectNode is what is called when a node is selected (clicked),  So calling selectNode on a node that is selected (checked) should unselect (uncheck) it.  I admit this may not be intuitive.  Perhaps I will make a wrapper function called unselectNode that calls selectNode under the covers when the node passed in is currently selected.

 


 
New Post
9/29/2006 1:05 PM
 
thanks again Jon. the reason why i was confused about the selectNode() call was because I was trying to unselect a node that I check manually by checking the checkbox.

if i repeatedly call selectNode(), i see that the check state does toggle. however, if i manually check with a button click, selectNode() seems to re-assert that checked state. the next selectNode() call will then uncheck.

from previous discussions, it seems like manually checking does not update the tree's xml state. thus, manually checking a checkbox does not update the control's internal state?

if that's the case, then one solution that does seem to work is:
function unselectNode(oTNode) {
  oTNode.selected = true;
  oTree.selectNode(oTNode);
}

Does this sound like the right track? If so, then having an unselectNode() call would definitely make things more clear.

Jae

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPIDNNTree Clear All TestDNNTree Clear All Test


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