Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2013-12-10
1
Medium Priority
?
3,063 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 44

Accepted Solution

by:
Rainer Jeschor earned 1720 total points
ID: 39710965
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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article you'll learn how to use Ajax calls within your CodeIgniter application. To explain this, I'll illustrate how to implement a simple contact form to allow visitors to send you an email through your web site.
How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
The viewer will learn how to dynamically set the form action using jQuery.
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…

618 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