I have the following ComboBox with some bad data (fixing the data is on the list to do, but the system will launch with bad data.)
AllContacts is pulled from
<
TelerikComboBox
Data
=
"AllContacts"
TextField
=
"FullName"
ValueField
=
"Id"
TValue
=
"int?"
TItem
=
"TblCompanyContact"
Width
=
"100%"
Value
=
"ContactId"
ValueChanged="@( (int? c) => ChangeDropDownContact(c) )" Filterable="true" FilterOperator="StringFilterOperator.Contains"> </
TelerikComboBox
>
@code{
List<
TblCompanyContact
> AllContacts;
int? ContactId;
protected void ChangeDropDownContact(int? c)
{
if (c != 0 && c != null)
{
//more code will go here when c is not null
ContactId = c;
}
else
{
ContactId = null;
}
}