0

Validation on combobox. How can I rollback a selected comboitem if validation failed? [closed]

asked 2014-05-29 22:31:31 +0800

GordonShamvey gravatar image GordonShamvey
11 1

Hi ZK team,

I have a problem:

I have a grid with combobox in each row. Some of them share comboitems. I have cases, when certain comboitem cant be selected in two comboboxes at the same time.

Thats why I need to make a validation after combobox selectedItem being changed. But when I trying to use something like that <combobox readonly="true" model="@load(each.suitableItemsList)" selecteditem="@bind(each.selectedDart)@validator('foo.bar.Validator')> and validation doesnt pass, binded item stays unchanged(thats correct) BUT selectedItem being changed on view(thats wrong). </p> <p>Is it conceived behaviour? Could you please give me any suggestions on how can I avoid this? Or how can I rollback item selection on my view?</p> <p>Thanks. </p> ">

delete flag offensive retag edit

The question has been closed for the following reason "duplicate question" by chillworld
close date 2014-05-29 22:44:05

Comments

Question tools

Follow

RSS

Stats

Asked: 2014-05-29 22:31:31 +0800

Seen: 10 times

Last updated: May 29 '14

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