-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Firstly sorry for my bad english. I'm new in ZK, i got a problem when using event onClick in listheader. Without sorting my code just work fine, but when i used sort in my list event onClick wont work, please help me...
this is my zul code
<zscript> <listbox id="lstInquiryCategory" emptymessage="${labels.common.err.noDataFound}" mold="paging" pagesize="20" pagingposition="both" >="" <listhead="" menupopup="auto" sizable="true"> <listheader width="100px" align="center" label="${labels.sco.action}"/>
<listheader id="headOrganization" align="center" label="${labels.wos.organizationName}" sort="auto(departmentName)"> <!-- sort="auto(departmentName)" -->
<textbox id="txtChangeOrganization" instant="true" placeholder="${labels.wos.organizationName}" visible="false" width="70%"/>
<attribute name="onClick">
<![CDATA[
if(fl < 1){
txtChangeOrganization.setVisible(true);
headOrganization.setLabel("");
fl=1;
}else{
txtChangeOrganization.setVisible(false);
headOrganization.setLabel("Organization Name");
fl=0;
}
]]>
</attribute>
</listheader>
You have put the onClick
event in the texbox, wich is not visible.
Please move your attribute to the listheader in stead of the textbox.
Greetz chill.
Asked: 2015-09-02 03:36:18 +0800
Seen: 38 times
Last updated: Sep 02 '15
Multiple windows cannot listen to one event
Sign out all desktops in a Session
ZK how to stop OnClick event of tab? [closed]
Execute Javascript on component visible
ZK Clustering, Session Replication Question [closed]
Problem binding values to a composite component
Solved....!!! My onClick Event wont work because, that event has been used for sorting in listheader, so my onClick wont work... i Change my event to onDoubleClick and it work fine....
galangPradhana ( 2015-09-03 02:16:14 +0800 )edit