Hello,
Telerik team,
I am facing an issue while I am setting the maximum and minimum value of the slider, If i set minimum value as 0 and maximum value as 40000000 the page doesn't load at all. Here is the code below :
var MInvestmentTarget = $("#MInvestmentTarget").kendoSlider({
min: 0,
max: 40000000,
tickPlacement: "none",
showButtons: false
}).data("kendoSlider"),
MInvestmentTarget = function (e) {
if (e.type != "keypress" || kendo.keys.ENTER == e.keyCode) {
var value = parseInt($("#InvestmentTargettxtBoxValue").val());
if (isNaN(value) || value < 0 || value > 40000000){
alert("Value must be a number between 0 and 40000000");
return;
}
MInvestmentTarget.value(value);
}
};
The page takes a long time to load in any of the browser and finally it crashes.
If I give the maximum value as 4000000, it works perfectly fine. The page loads properly.
So I want to know if there is a limit on the Maximum value that can be given for the slider ?
Or is it a mistake in the code which is causing this error.
Awaiting your response
Thanks
Pavan
Telerik team,
I am facing an issue while I am setting the maximum and minimum value of the slider, If i set minimum value as 0 and maximum value as 40000000 the page doesn't load at all. Here is the code below :
var MInvestmentTarget = $("#MInvestmentTarget").kendoSlider({
min: 0,
max: 40000000,
tickPlacement: "none",
showButtons: false
}).data("kendoSlider"),
MInvestmentTarget = function (e) {
if (e.type != "keypress" || kendo.keys.ENTER == e.keyCode) {
var value = parseInt($("#InvestmentTargettxtBoxValue").val());
if (isNaN(value) || value < 0 || value > 40000000){
alert("Value must be a number between 0 and 40000000");
return;
}
MInvestmentTarget.value(value);
}
};
The page takes a long time to load in any of the browser and finally it crashes.
If I give the maximum value as 4000000, it works perfectly fine. The page loads properly.
So I want to know if there is a limit on the Maximum value that can be given for the slider ?
Or is it a mistake in the code which is causing this error.
Awaiting your response
Thanks
Pavan