Binding more than 1 pages to kendo

0 Answers 63 Views
Data Source
Ataberk
Top achievements
Rank 1
Ataberk asked on 06 Mar 2023, 07:27 AM

Hi guys, 
I searched all the documents but there was nothing about binding more than 1 view. I have an error about length.

Here is the error:

Uncaught TypeError: Cannot read properties of null (reading 'length')
    at o (kendo.ui.core.js:11901:65)
    at r (kendo.ui.core.js:11933:51)
    at r (kendo.ui.core.js:11983:67)
    at r (kendo.ui.core.js:11983:67)
    at r (kendo.ui.core.js:11983:67)
    at r (kendo.ui.core.js:11983:67)
    at Object.s [as bind] (kendo.ui.core.js:11998:9)
    at TakvimDonemTanimlariService.initialize (TakvimDonemTanimlariService.js?v=DWpWtbx8AYW9jERt4Zt9itqDau9V9clzgEHhorRx-l8:400:15)
    at HTMLDocument.<anonymous> (TakvimDonemTanimlariService.js?v=DWpWtbx8AYW9jERt4Zt9itqDau9V9clzgEHhorRx-l8:410:33)
    at mightThrow (jquery.js:3557:29) 

Here is what I am binding:

kendo.bind($(".service-body"), takvimDonemTanimlariService);
kendo.bind($(".form-wrapper"), takvimDonemTanimlariService);

 

How can I solve this problem?

Georgi Denchev
Telerik team
commented on 08 Mar 2023, 03:28 PM

Hello, Ataberk,

I am sharing a Dojo example where two separate elements are bound to the same model:

https://dojo.telerik.com/@gdenchev/EPoKemon 

If the example does not help with resolving the problem, could you please update it to match your configuration and then send it back to me?

Best Regards,

Georgi

No answers yet. Maybe you can help?

Tags
Data Source
Asked by
Ataberk
Top achievements
Rank 1
Share this question
or