0

focus lost after notifychanged

asked 2014-05-26 16:20:36 +0800

kalk gravatar image kalk
1 1

updated 2014-05-26 16:24:17 +0800

I have a listbox (in zk 7.0.0) with several listitems. each item contains also a textbox. After editing a textbox I want to refresh the textbox and use notifychage for the whole listbox. This causes that the focus is not any more set to any element. I would like to have the focus set to the textbox in the next item of the listbox. Any ideas?

Thanks in advance.

delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2014-05-26 23:57:43 +0800

mhj gravatar image mhj flag of Brazil
806 1 7

Hello Kalk, did you see the link below? inline_editing hope this helps you, best

link publish delete flag offensive edit
0

answered 2014-05-27 08:18:41 +0800

kalk gravatar image kalk
1 1

Thank you mhj for you answer! I tried your suggestion. But the same problem is still there. "After editing" in my question above means that I trigger the onChange of the textbox onChange="@command('searchCommand', comp=self, item=each)" and fire the searchCommand in the corresponding viewmodel. At this command i have a @NotifyChange("*")-annotation. This notifychange is important for me because i refresh some data on the view. But then the focus is lost.

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

Follow
1 follower

RSS

Stats

Asked: 2014-05-26 16:20:36 +0800

Seen: 20 times

Last updated: May 27 '14

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