[jQuery] Re: (treeview) Collapsable hitarea

2009-11-22 Thread kemikTc
You have to unbind the click event on the span. Here's what I did: $("#categories").treeview().find('span.[your span class]').unbind ('click').click(); //replace [your span class] with the class of your nodes. By default they are 'folder' the +/- will still collapse and expand, but the label ()

[jQuery] Re: (treeview) Collapsable hitarea

2009-11-22 Thread kemikTc
The removes the click event from folders $("#treeview_id").treeview().find('span.folder').unbind('click'); If you want to add your own click event, here's how: $("#treeview_id").treeview().find('span.folder').unbind('click').click (function(){ //do something here });

[jQuery] Re: (treeview) Collapsable hitarea

2009-11-11 Thread Ryan
Anyone? On Nov 4, 1:43 pm, Ryan wrote: > I have atreeviewin my application and all works pretty well with it. > I want the toggle +/- button to work as it does by default, but want > the rest of the node to not trigger the collapse/expand event. How > would one go about preventing this behavior?