This is a migrated thread and some comments may be shown as answers.

Disable TreeView Selection

2 Answers 1143 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Alexander
Top achievements
Rank 1
Alexander asked on 19 Dec 2012, 09:14 AM
Hello, 

is it possible to select a node by the user to be prevented?


Thanks for your answers!  
Alexander

2 Answers, 1 is accepted

Sort by
0
Accepted
Iliana Nikolova
Telerik team
answered on 21 Dec 2012, 08:00 AM
Hi Alexander,

You can prevent the selection in Kendo UI TreeView by calling the preventDefault() method. I.e.: 
$("#treeview").kendoTreeView({
  //....
  select: preventSelection
});
 
function preventSelection(e){  
   if(//your logic){
      e.preventDefault();
   }
}

Regards,

Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Alexander
Top achievements
Rank 1
answered on 08 Jan 2013, 06:14 PM
Hello Iliana,
back from vacation I will install it first thing tomorrow,

Happy new year
Alexander
Tags
TreeView
Asked by
Alexander
Top achievements
Rank 1
Answers by
Iliana Nikolova
Telerik team
Alexander
Top achievements
Rank 1
Share this question
or