-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi, I tried to detect the click event of the title of a pannel. My scenario is that, the pannel includes a listbox which has a list of persons. When user click a row of the list ( a specific person ), then an event will be sent out (say... person_selected_event). When the user click the title of the pannel, then an event will be sent out (say.... pannel_title_click_event ). The real situation is that, when I click a row of the list, both person_selected_event and pannel_title_click_event will be sent out....this is not what I want!!!
I think the reason is that, I implement the onClick$idOfThePannel(..) method which will be invoked once a row of the list clicked. Unfortuntlly, this is not what I need.
Is that possible to implement some thing like onClick$idTitleOfThePannel(..), so that the method only be called while the TITLE is clicked.
Thanks.
Hi,
I have no idea to catch the event,
just a workaround below.
You can create a component (e.g., div) as parent of listbox,
and make a onClick event for the parent component.
thus the click event of panel won't be fired if you click any row of listbox.
BTW,
1.Javascript may help.
2.you could post to zk feature for the problem.
http://sourceforge.net/tracker/?group_id=152762&atid=785194
Asked: 2009-05-31 09:22:52 +0800
Seen: 129 times
Last updated: Jun 15 '09