How to disable only the checkbox of root folder in treeview

3 posts, 1 answers
  1. Vidya
    Vidya avatar
    4 posts
    Member since:
    Feb 2013

    Posted 14 Feb 2013 Link to this post

    Hi,

    We have a requirement in our application that the user should not check the Root node, we need to disable the checkbox of root node alone.
    We are loading the treeview using Ajax Binding (Load on Demand).
    Please help.!

    Thanks,
    Vidya

  2. Answer
    Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2153 posts

    Posted 18 Feb 2013 Link to this post

    Hi Vidya,

    You could disable the checkbox for the root item by setting it's disabled attribute to true.

    E.g.
    $("#treeview .k-checkbox input").eq(0).attr("disabled", true)

    If this was not the functionality that you were looking for, please provide more information, so I can assist you further.

     

    Kind regards,
    Dimiter Madjarov
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Vidya
    Vidya avatar
    4 posts
    Member since:
    Feb 2013

    Posted 20 Feb 2013 Link to this post

    Thank You, this worked.

    Thanks,
    Vidya
Back to Top