Maximum range value of the slider

6 posts, 0 answers
  1. Pavan
    Pavan avatar
    1 posts
    Member since:
    Aug 2012

    Posted 06 Aug 2012 Link to this post

    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
                       
  2. raj
    raj avatar
    5 posts
    Member since:
    Nov 2011

    Posted 06 Aug 2012 Link to this post

    Hi

     Same here..Any help from Telerik?

  3. Kendo UI is VS 2017 Ready
  4. Murali
    Murali avatar
    2 posts
    Member since:
    Oct 2011

    Posted 06 Aug 2012 Link to this post

    Hi,


    I'm also facing the same problem...
    Any help from KendoUI team???


    Thanks
  5. Tony
    Tony avatar
    2 posts
    Member since:
    Jul 2016

    Posted 28 Sep Link to this post

    I am facing the same problem.

    Any solution ??

  6. Dimiter Topalov
    Admin
    Dimiter Topalov avatar
    347 posts

    Posted 03 Oct Link to this post

    Hello,

    The described behavior is caused by the fact that when the max value is a large number, and smallStep and largeStep options are not set to be in some adequate proportion, it is impossible for the widget to correctly calculate all positions for values between the min and max values.

    We are not able to give an estimate of the largest number that can be used without specifying smallStep and largeStep, as this will vary between browsers, and systems, but in all cases it is strongly recommended to set the mentioned configuration options:

    http://dojo.telerik.com/OnorU

    If the scenario requirements prohibit the suggested approach, a Kendo UI NumericTextBox might be the more suitable widget.

    Regards,
    Dimiter Topalov
    Telerik by Progress
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
  7. Tony
    Tony avatar
    2 posts
    Member since:
    Jul 2016

    Posted 03 Oct in reply to Dimiter Topalov Link to this post

    Ah ok, thx Dimiter.

    so having large steps do solve the problem...

Back to Top
Kendo UI is VS 2017 Ready