Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

258
Views
How to add event listener to calendar Popup in Datebox in ZK?

How to add event listener to calendar Popup in Datebox in ZK ?

Datebox dateBox = new Datebox(dateObject);
// now add event listener
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

There is no server-side event for opening a datebox popup by default. Since opening a popup is a pure client-side action and no data changed. If you want to add a java listener, you can apply the attached js. That js will override databox widget to send an onOpen event to the server when you click the calendar icon to open the popup. Then you can call

dateBox.addEventListener("onOpen", new EventListener<Event>() {...});

zk.afterLoad('zul.db', function() {
    var exWidget = {};
    zk.override(zul.db.CalendarPop.prototype, exWidget, {
        open: function(silent){
            exWidget.open.apply(this, arguments);
            zAu.send(new zk.Event(this.parent, "onOpen", null, {toServer:true}));
        },
    });
});
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!