Selected Item data from a table to textbox in ZK

2019-02-28 13:02发布

I'm developing a small web application for storing data of a hospital's patients in order to learn more about zk and it's amazing features.

My goal this time is when I select a row (checkmark) I want to take the data of the row (red color) to their corresponding textbox (blue) and this works when I choose any row of the table:

Maybe it's a kind of configuration of the listbox or maybe I have to implement a method to get what I want, I don't know.

It will be great if you give me a hand with this.

1条回答
再贱就再见
2楼-- · 2019-02-28 13:47

It's nice to see ZK is spreading and I hope you like it, I know I do like it.
Your goal is actually on the ZK demo.

https://www.zkoss.org/zkdemo/grid/data_binding

The advantage of the demo site is that you can download the code so you can modify it also.
If you don't understand the demo, post some comment with a good explication what you don't understand and I'll try to update the answer with the explication.

查看更多
登录 后发表回答