Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
<
telerik:RadComboBox
ID
=
"RadComboBox1"
MarkFirstMatch
"false"
runat
"server"
AllowCustomText
"True"
AutoPostBack
OnClientKeyPressing
"OnClientKeyPressing"
>
Items
telerik:RadComboBoxItem
Text
"RadComboBoxItem1"
/>
"RadComboBoxItem2"
</
protected
void
Page_Load(
object
sender, EventArgs e)
{
if
(RadComboBox1.Text !=
""
)
(RadComboBox1.Items.FindItemByText(RadComboBox1.Text) ==
null
RadComboBoxItem newItem =
new
RadComboBoxItem();
newItem.Text = RadComboBox1.Text;
RadComboBox1.Items.Add(newItem);
}
<script type=
"text/javascript"
function
OnClientKeyPressing(Sender, args) {
(args.get_domEvent().keyCode == 13) {
__doPostBack(
'RadComboBox1.ClientID'
,
''
);
</script>