OnClick in ListHeader wont work when using Sort

asked 2015-09-02 03:36:18 +0800

galangPradhana gravatar image galangPradhana

updated 2015-09-02 03:40:58 +0800

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">
                                 if(fl < 1){
                                    headOrganization.setLabel("Organization Name");
delete flag offensive retag edit


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

1 Answer

Sort by ยป oldest newest most voted

answered 2015-09-02 07:19:11 +0800

chillworld gravatar image chillworld flag of Belgium
5337 4 9

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.

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: 2015-09-02 03:36:18 +0800

Seen: 37 times

Last updated: Sep 02 '15

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