I'd like to know what's the best way to validate that user's entry in a comboBoxItem is part of the pickList associated with it.
Quick context description:
- The mainDS has a foreingKey on anotherDs. anotherDS is linked to anotherTable in my db.
- the comboBoxItem is populated with the mainDS.foreignKey and the pickList is populated with values from anotherDS.
- when the value is modified from the drop down, it's fine.
- My problem is when the users type a value in the comboBoxItem. How should I proceed with minimum round trip between client-server to validate the value entered by the user matches a value from the pickList ?
I'm currently using the ChangedHandler, catching every changedEvent (every time a user types a letter) and not updating the DS if the value is not in anotherTable.
thanks
Quick context description:
- The mainDS has a foreingKey on anotherDs. anotherDS is linked to anotherTable in my db.
- the comboBoxItem is populated with the mainDS.foreignKey and the pickList is populated with values from anotherDS.
- when the value is modified from the drop down, it's fine.
- My problem is when the users type a value in the comboBoxItem. How should I proceed with minimum round trip between client-server to validate the value entered by the user matches a value from the pickList ?
I'm currently using the ChangedHandler, catching every changedEvent (every time a user types a letter) and not updating the DS if the value is not in anotherTable.
thanks
Comment