or
<
asp:TextBox
CssClass
=
"input01"
MaxLength
=
"16"
ID
=
"P5textfield18"
ToolTip
=
"Ingrese Teléfono"
runat
=
"server"
/>
<
telerik:RadInputManager
ID
=
"RadInputManager8"
runat
=
"server"
>
<
telerik:RegExpTextBoxSetting
BehaviorID
=
"P1RagExpBehavior1"
ValidationExpression
=
"\d+"
EnabledCssClass
=
"input01"
HoveredCssClass
=
"input01"
ErrorMessage
=
"Ingrese sólo números"
EmptyMessage
=
"sólo números"
EmptyMessageCssClass
=
"input01"
FocusedCssClass
=
"input01"
InvalidCssClass
=
"input01"
>
<
TargetControls
>
<
telerik:TargetInput
ControlID
=
"P5textfield18"
/>
</
TargetControls
>
</
telerik:RegExpTextBoxSetting
>
</
telerik:RadInputManager
>
.input
01
{
border-bottom
:
#333
1px
solid
;
border-left
:
#333
1px
solid
;
padding-bottom
:
3px
!important
;
padding-left
:
3px
!important
;
width
:
270px
!important
;
padding-right
:
3px
!important
;
font-family
:
"PT Sans Narrow"
,
sans-serif
!important
;
color
:
#838080
!important
;
font-size
:
16px
!important
;
border-top
:
#333
1px
solid
;
margin-right
:
10px
!important
;
border-right
:
#333
1px
solid
;
padding-top
:
3px
!important
}
Dim today As Double = DateTime.Now.[Date].ToOADate()
<
table
id
=
"Table11"
cellspacing
=
"1"
cellpadding
=
"1"
runat
=
"server"
>
<
tr
>
<
td
valign
=
"bottom"
>
<
telerik:RadAsyncUpload
ID
=
"RadAsyncUpload1"
EnableTheming
=
"true"
TabIndex
=
"1"
runat
=
"server"
Width
=
"300px"
TargetFolder
=
"~/App_Data"
MultipleFileSelection
=
"Automatic"
OnClientAdded
=
"keyboardSupport"
AccessKey
=
"K"
OnClientFileUploading
=
"onClientFileUploading"
DisablePlugins
=
"true"
/>
</
td
>
</
tr
>
</
table
>
<
script
language
=
"javascript"
type
=
"text/javascript"
>
var $ = $telerik.$;
var $cancelButton;
// keyboardSupport() method activates focusing with TAB key
function keyboardSupport(sender, args) {
var $fileInput = $(".ruFileInput", args.get_row());
$fileInput.attr("tabindex", "1")
var $selectButton = $(".ruButton.ruBrowse", args.get_row());
$fileInput.focus(function (e) {
$selectButton.css("border", "1px dotted");
});
$fileInput.blur(function (e) {
$selectButton.css("border", "0px");
});
$fileInput.keydown(function (event) {
if (event.keyCode == '13') {
event.preventDefault();
}
});
if ($telerik.isIE) {
$fileInput.keydown(function (e) {
if (e.keyCode == Sys.UI.Key.tab && e.shiftKey == false) {
$fileInput.parent().focus();
}
if (e.keyCode == Sys.UI.Key.tab && e.shiftKey == true) {
e.preventDefault();
if ($cancelButton != undefined)
$cancelButton.focus();
else
$fileInput.parent().focus();
}
});
}
}
function onClientFileUploading(sender, args) {
$(".ruFileInput", args.get_row()).attr("tabindex", "-1");
$cancelButton = $(".ruCancel", args.get_row());
$cancelButton.attr("tabindex", "1");
}
$(document).keydown(function (e) {
var accesskey = $find("<%=RadAsyncUpload1.ClientID%>")._accessKey;
if ($telerik.isFirefox) {
if (e.altKey == true && e.shiftKey == true && e.which == accesskey.charCodeAt()) {
focusOnFirstInput();
}
}
if ($telerik.isChrome || $telerik.isSafari || $telerik.isIE) {
if (e.altKey == true && e.which == accesskey.charCodeAt()) {
focusOnFirstInput();
}
}
});
function focusOnFirstInput() {
var firstInput = $("input[type='file']", $get("<%=RadAsyncUpload1.ClientID%>"))[0];
if (firstInput != undefined) {
firstInput.focus();
}
}
</
script
>