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

Treeview conversion from Telerik to Kendo UI

3 Answers 102 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Harsh
Top achievements
Rank 1
Harsh asked on 30 Mar 2013, 06:21 AM
Hi,

We have converted the the treeview from telerik MVC to Kendo UI looks fine but how should we do operations on it after the tree is loaded ? Previously we used OnLoad event in telerik to do some operations after the tree is loaded but in Kendo no Onload event is present so we used document.ready function but it fires before the tree is loaded due to which the few steps do not work.
Other question is regarding the Kendo treeview expand and collapse animation. We need to show the + and - signs instead os the small triangle, how shall we achieve this ?

Thanks..

3 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 02 Apr 2013, 08:51 AM
Hello,


To apply some custom logic when the TreeView has loaded the data, you should bind to the dataBound event. Regarding your second question, in order to set some custom icons instead of the default TreeView triangle, you should override the following CSS styles.
E.g.
.k-treeview .k-minus {
    background: url("minus.png") center center;
}
.k-treeview .k-plus {
    background: url("plus.png") center center;
}

 

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!
0
Harsh
Top achievements
Rank 1
answered on 03 Apr 2013, 04:30 PM
Thanks. That worked..

One more functionality which need to disable is that when all the child nodes are selected the parent node gets selected by default. We don't want this functionality, how can we achieve this ?

Thanks.
0
Dimiter Madjarov
Telerik team
answered on 04 Apr 2013, 04:15 PM
Hello,


To override the default behavior of the checkboxes, you could bind to their change event and apply the custom logic in the event handler. Another option in the current scenario would be to specify a custom template and provide your own implementation of the checkboxes.

 

Greetings,
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!
Tags
TreeView
Asked by
Harsh
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Harsh
Top achievements
Rank 1
Share this question
or