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:RadAutoCompleteBox
ID
=
"RadAutoCompleteBox2"
runat
"server"
OnClientEntryAdding
"OnClientEntryAddingHandler"
. . . .>
</
>
<script type=
"text/javascript"
function
OnClientEntryAddingHandler(sender, eventArgs) {
if
(sender.get_entries().get_count() > 0) {
eventArgs.set_cancel(
true
);
alert(
"You can select only one entry"
}
</script>
var
maxLength = 20;
$(
".racInput"
).keyup(
() {
text = $(
this
).val();
textLength = text.length;
(textLength > maxLength) {
).val(text.substring(0, (maxLength)));
"Sorry, you only "
+ maxLength +
" characters are allowed"
});