Hi,
When I try and set the SelectedValue by using Bind in the .aspx page, if the value isn't found in the list it (quite rightly) throws an exception. See example below:
Is there any way to suppress this exception if I don't care that the value isn't in the list? I know I can do it in the code behind, I just want to know what my options are.
When I try and set the SelectedValue by using Bind in the .aspx page, if the value isn't found in the list it (quite rightly) throws an exception. See example below:
<telerik:RadComboBox ID="rcbSalesPersons" DataSourceID="odsSalesPerson" runat="server" |
Filter="Contains" DataTextField="Description" DataValueField="ValueID" |
SelectedValue='<%# Bind("SalesPersonID") %>' EmptyMessage="Select a Sales Person..."> |
</telerik:RadComboBox> |
Is there any way to suppress this exception if I don't care that the value isn't in the list? I know I can do it in the code behind, I just want to know what my options are.