I'm using a RadComboBox with a definition like this:
in the code behind:
During page load and ! postback... something like this:
now... the problem comes when a CustomerName is a blank string.
in a subsequent postback, then SelectedIndex property is set to the first "Blank" databound item. but the front end still says "Type a customer name"
Obviously the user has not changed the drop down, but its still reporting erroneously that the selected index is chosen.
Thanks
Sean
| <tel:RadComboBox ID="ChooseCustomer" runat="server" Width="200" DropDownWidth="300" EmptyMessage="Type a customer name" AllowCustomText="true" MarkFirstMatch="true" > |
| <CollapseAnimation Duration="50" /> |
| <ExpandAnimation Duration="50" /> |
| </tel:RadComboBox> |
in the code behind:
During page load and ! postback... something like this:
| IList<Customer> all = EntityPersister.GetAll<Customer>(); |
| ChooseCustomer.DataSource = all; |
| ChooseCustomer.DataTextField = "CustomerName"; |
| ChooseCustomer.DataValueField = "ID"; |
| ChooseCustomer.DataBind(); |
now... the problem comes when a CustomerName is a blank string.
in a subsequent postback, then SelectedIndex property is set to the first "Blank" databound item. but the front end still says "Type a customer name"
Obviously the user has not changed the drop down, but its still reporting erroneously that the selected index is chosen.
Thanks
Sean