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

TreeList with rebind throw error when expand/collapse tree node

5 Answers 120 Views
Integration with other JS libraries
This is a migrated thread and some comments may be shown as answers.
Qing
Top achievements
Rank 1
Qing asked on 03 Sep 2015, 08:39 AM
I use angularjs with TreeList like this <div ng-controller='TreeListCtrl as vm' ng-if='vm.mode==="tree"' kendo-tree-list k-options="vm.options" k-ng-delay="vm.options" k-rebind='vm.options'></div>`. It can show data very well, but if I click the icon to expand or collapse, I got the issue: Uncaught TyperError: Cannot read property 'find' of null. This only show if I used 'k-rebind'.

I use angularjs 1.4.5 & latest kendo-ui.

5 Answers, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 07 Sep 2015, 06:07 AM

Hello Qing,

 

I have tried to reproduce the issue in order to investigate it further, but could not manage to do it. Please check the following sample and edit it in order to show the exact issue that you are facing:

 

http://dojo.telerik.com/OqoHI

 

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Qing
Top achievements
Rank 1
answered on 07 Sep 2015, 07:15 AM

Hi Kiril,

 I'm not using the remote data, maybe that's the issue is. I wrote a small sample for you http://dojo.telerik.com/OqoHI/4. Please let me know what I should change?

0
Kiril Nikolov
Telerik team
answered on 08 Sep 2015, 10:07 AM

Hello Qing,

 

Thanks for the example.

 

It turns out that this is an issue that we will fix for the upcoming release. You can check the entry here:

 

https://github.com/telerik/kendo-ui-core/issues/1096

 

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Qing
Top achievements
Rank 1
answered on 08 Sep 2015, 12:15 PM
Got it. I'm looking forward this fix. This makes me sad, I must refresh the whole page each time.
0
Kiril Nikolov
Telerik team
answered on 09 Sep 2015, 06:49 AM

Hello Qing,

 

We have already fixed the issue and the fix will be available with the next release. 

 

In case you have any further questions, please do not hesitate to contact us.

 

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Integration with other JS libraries
Asked by
Qing
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Qing
Top achievements
Rank 1
Share this question
or