Posted 11 Jan 2013 Link to this post
Posted 15 Jan 2013 Link to this post
<
telerik:RadNumericTextBox
ID
=
"rntbPage"
MinValue
"1"
MaxValue
"9999"
MaxLength
"4"
ShowSpinButtons
"True"
AutoPostBack
"true"
Font-Names
"Verdana"
Font-Size
"X-Small"
Height
"22px"
Width
"72px"
runat
"server"
>
NumberFormat
DecimalDigits
"0"
GroupSeparator
""
/>
ClientEvents
OnKeyPress
"OnKeyPress"
OnValueChanged
"OnValueChanged"
</
// do not allow entry of comma or dot in textboxes
function
OnKeyPress(sender, args) {
dont_rebuild_grid =
true
;
var
uniCode = args.get_keyCode();
if
(uniCode > 43 & uniCode < 47) {
args.set_cancel(
);
}
false
OnValueChanged(sender, args) {
(dont_rebuild_grid) {
Protected
Sub
rntbPage_TextChanged(sender
As
Object
, e
System.EventArgs)
Handles
rntbPage.TextChanged
OnePageOfItems()
End
.radInput_Hay a.spinbutton
{
font-size
:
larger
!important
font-weight
bolder
Posted 16 Jan 2013 Link to this post
Posted 21 Jan 2013 Link to this post
Posted 01 Feb 2013 Link to this post
Posted 04 Feb 2013 Link to this post
Posted 26 Feb 2014 Link to this post
Posted 26 Feb 2014 in reply to moegal Link to this post
"RadTextBox1"
ClientEvents-OnBlur
"OnBlur"
onkeypress
"KeyPress();"
onmousewheel
"MouseWheel();"
<script type=
"text/javascript"
OnBlur(sender, args) {
alert(
//your code
KeyPress() {
"KeyPress"
MouseWheel() {
"MouseWheel"
</script>
Posted 27 Feb 2014 in reply to Shinu Link to this post
Posted 27 Feb 2014 in reply to moegal Link to this post
...
telerik:RadTextBox
"MouseWheel(this);"
Text='<%# DataBinder.Eval(Container.DataItem, "FileName").ToString() %>'>
MouseWheel(id) {
sender = id;
Posted 28 Feb 2014 in reply to moegal Link to this post
onkeypress=
'<%# string.Format("KeyPress(\"{0}\");", ((RepeaterItem)Container).FindControl("qty").ClientID) %>'
onmousewheel=
'<%# string.Format("MouseWheel(\"{0}\");", ((RepeaterItem)Container).FindControl("qty").ClientID) %>'
onkeydown=
'<%# string.Format("return (event.keyCode != 13);KeyDown(\"{0}\");", ((RepeaterItem)Container).FindControl("qty").ClientID) %>'
Posted 05 Mar 2014 in reply to moegal Link to this post
"KeyPress(event,this);"
Text=' <%# DataBinder.Eval(Container.DataItem, "FileName").ToString() %>'>
KeyPress(key,id) {
(key.keyCode == 13)
key.preventDefault();
Posted 05 Mar 2014 in reply to Shinu Link to this post