Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Checkbox in a tree node
sagivc
Newbie

Posts: 1
Registered: 8/18/2004
Member Is Offline
posted on 8/18/2004 at 10:28 AM Reply With Quote
Checkbox in a tree node


Do you support in checkbox for a tree node (in the Tree Menu Pro)?
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 8/18/2004 at 02:53 PM Reply With Quote

There is no support specifically for checkboxes, but as long as you can use any HTML code within item's text you can also put checkboxes there. Contact us for free quote in case you need cascading select and other additional functionality related to selectboxes.
View User's Profile View All Posts By User U2U Member
kcbaltz
Junior Member

Posts: 3
Registered: 11/12/2004
Member Is Offline
posted on 11/12/2004 at 11:05 PM Reply With Quote

I tried adding a checkbox to the name of the node, and that cause it to appear correctly, but I was unable to click on it without triggering the onclick handler for the whole node. Is there a way to locally disable that handler?
View User's Profile View All Posts By User U2U Member
kcbaltz
Junior Member

Posts: 3
Registered: 11/12/2004
Member Is Offline
posted on 11/13/2004 at 12:11 AM Reply With Quote

Nevermind, I figured it out. I added the following to the checkbox <input> tag:

onclick='cancelEventPropagation()'

The javascript for that method looks like:

function cancelEventPropagation()
{
var e = window.event;
// alert('click: ' + obj.name);
if (! e) {
alert ('no event received');
}
else if (e.stopPropagation) {
e.stopPropagation(); // use w3c standard
// if (e.cancelable) e.preventDefault(); // this would stop this event from affecting the src object
}
else {
e.cancelBubble = true; // use IEs special methods
e.returnValue = true; // let this event actually fire
}

}
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos
Multiple Trees
Frames Targeting
Icons and Styles Overloading
Event Handling
Performance Test
Version 1.2 features
Product Documentation Documentation
Documenation Page
Change Log
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004