How to stop parent onOpen event?

asked 2013-06-08 10:06:10 +0800

wiker gravatar image wiker

updated 2013-07-03 08:03:12 +0800

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team

When i checked checkbox (id = 'sameAsPatientCb') , the parent component will also launch onOpen event. So how can i stop parent opOnen event on this.

Any advise?

<groupbox id="guarantorInfogb" mold="3d" open="true"  height="25px"  forward="onOpen=onOpenVisibleForguarantorInfogb">
    <attribute name="onOpen"><![CDATA[
        guarantorInfoArrow.setSclass("open-" + self.isOpen());
        <caption image="/images/pre/preyellow.gif" label="Guarantor Information">
                <checkbox id="sameAsPatientCb" forward="onCheck=onCheckSameAsPatient"></checkbox>
                <label value=" Same as Patient" style="margin-right:25px"/>
                <div id='guarantorInfoArrow' sclass="open-true"  width="20px"/> 
delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted

answered 2013-07-03 08:45:59 +0800

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team

I post a bug here

Here is the workaround

<checkbox xmlns:w="client" id="sameAsPatientCb" onCheck="">
    <attribute w:name="doClick_">
            function (evt) {
                evt.stop({propagation: true});
                this.$doClick_.apply(this, arguments);
link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

1 follower



Asked: 2013-06-08 10:06:10 +0800

Seen: 10 times

Last updated: Jul 03 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More