I'm wondering if there is a way to create an editable dropdown - one which displays values from a validation list, but which allows new values to be added, or is tolerant of existing values that are not in the list. I have a situation where there is old data that can't be changed, but all new data needs to use a specific dropdown list.
I'm also looking for notification when a Date field has been changed so I can immediately calculate a person's age based on their DOB. The GMDatePicker doesn't look like it uses the Refresh option on the DateTimePropertyTemplate's DateTime tab, and I didn't see any OnValueChanged event for the GMDatePicker control.
Thanks for any tips!
~Nat
Nat HolderDatabase Programmer, New Avenues for Youth
Nat,
GenWise does not have anything special for that case but you could manually program it in the following way:
1) The dropdown list will show list of currently valid options. You can add 1 option called "custom"
2) If Dropdown.selectedvalue == custom --> show/unhide textbox to type new value
Another option is to use a Dropdown control which supports "editable" and/or auto complete .
The dropdown from the standard asp.net is quite limited in this area, so you will need to use another control like the ones from Telerik for example.
I would not do it at the UI level.
If you ask me I would create a new property DOB in the BO (poco) and calculated there (so only a getter, no setter , no private field).
If you place in the UI a label and you cause a postback it would rebind + recalculate automatically.