Good Evening,
I need to create a dropdown that contains to fields from a database seperated by a hyphen "-".
How would I do that using the following code:
I would like the text field to display INCIDENT_ID - TITLE, so that they dropdown would have:
34556222 - Outage in location blablah
34544566 - Outage in location hahaha
I need to create a dropdown that contains to fields from a database seperated by a hyphen "-".
How would I do that using the following code:
public void radcombo_mns_incidents_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
{
radcombo_mns_incidents.DataTextField = "INCIDENT_ID";
radcombo_mns_incidents.DataValueField = "INCIDENT_ID";
radcombo_mns_incidents.DataSource = from c in quarkdb.MNs
join t in quarkdb.STATUS_TYPEs on c.STATUS equals t.RECORD_ID
where t.STATUS != "Closed"
select new
{
c.INCIDENT_ID,
c.TITLE
};
radcombo_mns_incidents.DataBind();
I would like the text field to display INCIDENT_ID - TITLE, so that they dropdown would have:
34556222 - Outage in location blablah
34544566 - Outage in location hahaha