Treelist prevent selection

2 posts, 0 answers
  1. Philippe
    Philippe avatar
    5 posts
    Member since:
    Jan 2015

    Posted 24 Nov 2015 Link to this post

    Hi everyone, I'm trying to implement a click validation on the selection event for the treelist.

    All I've fount is this inspering article 

    Claiming the preventDefault would do the job.

    So I've tried placing an avent in Select and selectable with no succes.

    change is the only event triggering

    executing e.preventDefault does run that script inside Kendo.all.js

    var preventDefault = function() {

       this._defaultPrevented = true;

    then the trigger function "return e._defaultPrevented === true;"

     but it seem that your change function will not listen to it.

     _change: function() {


     It seem like a bug

    Am i missing anything?

  2. Marin
    Marin avatar
    1057 posts

    Posted 26 Nov 2015 Link to this post


    In order prevent selection you can handle the click event of the row in the treelist and remove the relevant css class:
    $("#treelist").on("click", "tr[role='row']", function (e) {
                        if (//...some condition...//) {
                            var row = $("tr[role='row']");

    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top