I have this codes below.. On this foreach (ddTo.Items) gives me all the customers inside the combobox, all I want whatever value is selected.. How can I get that? If I have more than one item SelectedValue is not working...by just saying .selectedValue = ..
<telerik:RadComboBox ID="ddTo" runat="server" Width="99%" Skin="Windows7" AutoCompleteSeparator=";"
DataSourceID="dsSelectCustomers" DataTextField="Name" DataValueField="custID"
EmptyMessage="Enter Name(s)" MarkFirstMatch="true" AllowCustomText="true"
ShowDropDownOnTextboxClick="false" ShowToggleImage="false" />
string comboBoxValue="" ;
foreach (RadComboBoxItem item in ddTo.Items)
{
comboBoxValue = comboBoxValue + ((comboBoxValue == "") ? "" : ",") + item.Value;
}
<telerik:RadComboBox ID="ddTo" runat="server" Width="99%" Skin="Windows7" AutoCompleteSeparator=";"
DataSourceID="dsSelectCustomers" DataTextField="Name" DataValueField="custID"
EmptyMessage="Enter Name(s)" MarkFirstMatch="true" AllowCustomText="true"
ShowDropDownOnTextboxClick="false" ShowToggleImage="false" />
string comboBoxValue="" ;
foreach (RadComboBoxItem item in ddTo.Items)
{
comboBoxValue = comboBoxValue + ((comboBoxValue == "") ? "" : ",") + item.Value;
}