Revision history [back]

click to hide/show revision 1
initial version

answered 2021-03-17 12:10:24 +0800

cor3000 gravatar image cor3000

ZK Team

did you try the dedicated Clients.xxx API methods to focus and scroll into view ?

https://www.zkoss.org/wiki/ZKDeveloper%27sReference/UIPatterns/UsefulJava_Utilities#focus

did you try the dedicated Clients.xxx API Clients.focus(...) API methods to focus and scroll into view ?

https://www.zkoss.org/wiki/ZKDeveloper%27sReference/UIPatterns/UsefulJava_Utilities#focus

did you try the dedicated [Clients.focus(...) API] (new in ZK 9.5)(Clients.focus(...) APIhttps://www.zkoss.org/wiki/ZKDeveloper%27sReference/UIPatterns/UsefulJava_Utilities#focus ) methods to focus and scroll into view ?

did you try the dedicated [Clients.focus(...) API] Clients.focus(...) API (new in ZK 9.5)(https://www.zkoss.org/wiki/ZKDeveloper%27sReference/UIPatterns/UsefulJava_Utilities#focus) 9.5) methods to focus and scroll into view ?

did you try the dedicated Clients.focus(...) API (new in ZK 9.5) methods to focus and scroll into view ?

UPDATE 2021-03-18

here an example updating the focus after children have been created (both initially and after a command replacing the children list)

https://zkfiddle.org/sample/1ae93un/1-focus-after-children-binding

The delayed execution is achieved by posting an event with a lower priority (e.g. -1) to happen after child components are created by the children binding

did you try the dedicated Clients.focus(...) API (new in ZK 9.5) methods to focus and scroll into view ?

UPDATE 2021-03-18

here an example updating the focus after children have been created (both initially and after a command replacing the children list)

https://zkfiddle.org/sample/1ae93un/1-focus-after-children-binding

The delayed execution is achieved by posting an event with a lower priority (e.g. -1) to happen after child components are created by the children binding

UPDATE 2021-03-19

you can also override the open method just for an individual bandbox:

updated fiddle: https://zkfiddle.org/sample/2qmuud5/15-combobox-override-single-component

please also read the related docs on widget customization

did you try the dedicated Clients.focus(...) API (new in ZK 9.5) methods to focus and scroll into view ?

UPDATE 2021-03-18

here an example updating the focus after children have been created (both initially and after a command replacing the children list)

https://zkfiddle.org/sample/1ae93un/1-focus-after-children-binding

The delayed execution is achieved by posting an event with a lower priority (e.g. -1) to happen after child components are created by the children binding

UPDATE 2021-03-19

you can also override the open method just for an individual bandbox:

updated fiddle: https://zkfiddle.org/sample/2qmuud5/15-combobox-override-single-component

please also read the related docs on widget customization

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