Chrome//kendoUI/jQuery: Maximum call stack size exceeded

时光怂恿深爱的人放手 提交于 2019-12-05 15:53:15

What data object are you trying to bind? The "call stack exceeded" error often occurs when binding a Kendo UI component to a data object that has circular references (e.g., customer -> orders[0] -> customer). All breeze entities have circular references (e.g., customer.entityAspect.entity which points back to customer).

Therefore, you need to either train the component to ignore certain paths or insert an intermediary object that clips those paths. If you're just presenting (not updating) the object, you can make a safe copy with JSON.stringify, passing in a replacer function to exclude the circular paths.

This is a bigger topic than I have time for in this answer. Kendo UI is not the only one with this problem, I hasten to add.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!