Hi
Thought Id share an issue I had today with combobox's that are related like the example at http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multiplecomboboxes/defaultcs.aspx
Basically if you add items to the code infront like this:
Then you will not get a SelectedValue returned when you submit the form. You get the Text property but not SelectedValue. Solution is to add these default RadComboBoxItems after you have databound the others in the OnItemsRequested handler.
Not sure if this is an actual issue with the control, or that a warning needs to be put somewhere, but this is something Im sure others would want to do in future.
Thought Id share an issue I had today with combobox's that are related like the example at http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multiplecomboboxes/defaultcs.aspx
Basically if you add items to the code infront like this:
| <telerik:RadComboBox ID="RadComboBox3" |
| runat="server" |
| Width="186px" |
| CssClass="ComboBox_Cities" |
| OnClientItemsRequested="ItemsLoaded" |
| OnItemsRequested="RadComboBox3_ItemsRequested" |
| AppendDataBoundItems="true" |
| ShowMoreResultsBox="false" |
| NoWrap="true" |
| EnableScreenBoundaryDetection="false" |
| EmptyMessage="Type a city name" |
| AllowCustomText="false" |
| MarkFirstMatch="true"> |
| <Items> |
| <telerik:RadComboBoxItem Text="other, please specify" Value="-1" /> |
| </Items> |
| </telerik:RadComboBox> |
Then you will not get a SelectedValue returned when you submit the form. You get the Text property but not SelectedValue. Solution is to add these default RadComboBoxItems after you have databound the others in the OnItemsRequested handler.
Not sure if this is an actual issue with the control, or that a warning needs to be put somewhere, but this is something Im sure others would want to do in future.