Solved

Kendo Controls - anyone have a JS script to disable all kendo controls?

Posted on 2013-12-10
1
2,407 Views
Last Modified: 2014-02-24
Anyone ever do this?  I am trying to disable all kendo dropdown lists and date pickers.
0
Comment
Question by:sbornstein2
1 Comment
 
LVL 44

Accepted Solution

by:
Rainer Jeschor earned 430 total points
Comment Utility
Hi,

have not done this before but at least in my small sample this works:
function DisableAll() {
    // Disable all datepicker
    $(".k-calendar-container").each(function () {
        var elementId = this.id.split("_")[0];
        var tempDP = $("#"+elementId).data("kendoDatePicker");
        tempDP.enable(false);
    });
    
    // Now disable all DropDowns
    $(".k-list-container").each(function () {
        var elementId = this.id.split("-")[0];
        var tempDL = $("#"+elementId).data("kendoDropDownList");
        tempDL.enable(false);
    });
}

Open in new window


Sample:
http://jsfiddle.net/EE_RainerJ/cadW2/

HTH
Rainer
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Code enhancement 5 12
Re-position the objects 7 46
Asp.net mvc 5 5 15
Visual Studio 2013 debugging 2 14
Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
Introduction Chart.js, used properly, can visually add a difference to your charting applications. It engages your visitors and allows them to interact with data they otherwise wouldn't be able to without expensive and complicated systems. For this…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now