-
FEATURED COMPONENTS
First time here? Check out the FAQ!
1 | initial version | |
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> ">
2 | No.2 Revision |
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')>
selecteditem="@bind(each.selectedDart)@validator('foo.bar.Validator')></code>
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>
">
3 | No.3 Revision |
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')></code>
selecteditem="@bind(each.selectedDart)@validator('foo.bar.Validator')><code>
and validation doesnt pass, binded item stays unchanged(thats correct) BUT selectedItem being changed on view(thats wrong). </p>
<p>Is <p>\nIs 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>
">
4 | No.4 Revision |
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')><code>
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>
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 myThanks.