How come when you tab into a numeric input the cursor doesn't default to the end of the value in the box? Is there a way to get that behavior?
http://screencast.com/t/5GPbrxuM30
Why doesn't this work?
$('#my-kendo-numerictextbox').attr('title', '100');
Currently the title/tooltip is displaying the value the is already visible in the textbox - seriously?
I want to be able to change the value dynamically to reflect the upper value allowed in the numeric textbox, in other words, some useful information.I'm a bit weird that way, wanting to show the users something that is actually useful...
thanks
public
class
BasicInformation
{
[Display(Description =
"Patient's height"
, Name =
"Height (Inches):"
)]
[Required(AllowEmptyStrings =
false
, ErrorMessage =
"Height requires a value to be entered."
)]
[Range(12, 96)]
public
double
Height {
get
;
set
; }
}
BasicInformation bi =
new
BasicInformation();
return
View(
"Step2"
, bi);
@(Html.Kendo().NumericTextBoxFor<
double
>(model => model.Height)
.Name("txtHeight")
.Decimals(0)
.Format("##")
)@Html.EditorFor(model => model.Height)
Greetings,
I'm using the Numeric Text Box and I want to limit the number of decimal the user is allowed to enter to a certain value, Let's say 3
I'm seeing the decimals property to 3 and the format to n3
The display is working fine but the user is allowed to input 1.999999 for example and it will be rounded to 2.000
I want it to be 1.999, either by limiting the input or, what I tried to do is forcing the value to be 1.999.
I tried using the onchange event but when the event is fired, the value is already rounded to 2.
Any help on this,
Thanks,
$(
"#myPercentageChoice"
).kendoNumericTextBox({
format:
"p1"
,
spinners:
false
,
value: 0,
decimals: 3
});
Hi,
I have a numeric textbox inside a Grid. I would like to allow showing a "," as a separator (thousands) and also allow decimals.
In the OnEdit of the Grid, I have the following setup:
1.
edit:
function
(e) {
2.
e.container.find(
"input[name^=costOperand]"
).kendoNumericTextBox({
3.
min: 1,
4.
max: 888888887,
5.
step: 100
6.
});
7.
}
With the above the numeric textbox doesn't allow me to type in a ",". Only decimals are allowed.
Any idea?
Thanks
I'm trying to set NumericTextBox properties dynamically and directly in the <input /> tag. However, I can get decimals, restrictDecimals and format to have effect.
Here is my template:
<script type="text/x-kendo-template" id="tmpl">
#
var step = allowDecimals ? decimalStep : 1;
var decimals = allowDecimals ? 2 : 0;
var format = allowDecimals ? "" : "\#";
#
<span>#:fix#</span>
<input class="unit-count" type="number" value="#:count#" step="#:step#" min="0" data-decimals="#:decimals#" format="#:format#" />
</script>
Only value, step and min have effect on the configuration of the NumericTextBox.
I have tried with data-decimals="#:decimals#" and decimals="#:decimals#" with the same effect.
What properties can I set (and how) directly in the <input /> tag?
/Morten
I have a problem with numerictextbox initialization.
http://jsfiddle.net/je2vh4cL/
When I click on click span - everything is ok. Focus/click event from input generate error on Chrome/IE. Any ideas?
Hi,
I use the numericTextBox in our Cordova/AngularJS application. If I focus the numericTextBox it opens the normal alpha-numeric keyboard and not the numeric keyboard like expected.
Is it possible to make that the numeric keyboard appears on focus?
With best regards
Johann
Is there a way to show formatting, basically the way it shows when there is value 0 inside.
In this example, it does not show any formatting, before entering value.
I want it look like 0.00kg on load.
https://dojo.telerik.com/oWObuGuP