0

Spinner and onChange with command and MVVM

asked 2016-09-09 10:47:26 +0800

afxgroup gravatar image afxgroup
126 2

Hi, it seems there is a problem with Spinner and MVVM using onChange/onChanging

spinner value="@bind(vm.nameX)" width="90px" onChanging="@command('redrawImage')"></spinner>

The onChange event is fired only when the element lost its focus and not on up/down click button. The onChanging event is correctly fired but the vm.nameX value has always the original value.

I'm using ZK 8.0.1.1 since there are no other free versions..

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-09-10 06:39:00 +0800

chillworld gravatar image chillworld flag of Belgium
5367 4 9
https://github.com/chillw...

updated 2016-09-10 12:18:34 +0800

No bug, set 'instant="true".
This activates the sending to server for the onChanging.

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

Follow
2 followers

RSS

Stats

Asked: 2016-09-09 10:47:26 +0800

Seen: 35 times

Last updated: Sep 10 '16

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