GenWise Forums Minimize
SearchForum Home
     
  Discussions  GenWise Support  Editable DropDo...
 Editable DropDown? Popup calendar auto-postback?
 
nholder
5 posts
Joined
1/7/2009

Editable DropDown? Popup calendar auto-postback?
Posted: 04 Apr 08 4:45 AM

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 Holder
Database Programmer, New Avenues for Youth

stalamoni
162 posts
5th
Joined
1/7/2009

Re: Editable DropDown? Popup calendar auto-postback?
Posted: 04 Apr 08 7:54 AM
 nholder wrote

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.

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.

 

 


Sebastian Talamoni
GenWise Team
www.genwise.com
stalamoni
162 posts
5th
Joined
1/7/2009

Re: Editable DropDown? Popup calendar auto-postback?
Posted: 04 Apr 08 8:20 AM
 nholder wrote

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.

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.


Sebastian Talamoni
GenWise Team
www.genwise.com
  Discussions  GenWise Support  Editable DropDo...
Forum Home  Search     
 
 
Copyright 2002-2005 Genwise B.V   |  GenWise   |  Privacy Statement   |  Terms Of Use