I tried creating a KendoGrid component wrapped-up in angular2 and it loads 
the data properly. Please refer plunker 
<http://plnkr.co/edit/fpflMfKY7dcgNyfN5FY0?p=preview> 
http://plnkr.co/edit/fpflMfKY7dcgNyfN5FY0?p=preview . 
Now I tried to capture the onClick/onChange event of the kendo-grid and 
wanted to load a dynamic component on the onChange event of the kendogrid. 
When the onChange event is fired and when it tries to load the component it 
is throwing the following error

[email protected]?main=browser:461 Unhandled Promise rejection: Cannot read 
property 'createComponent' of undefined ; Zone: angular ; Task: Promise.then ; 
Value: TypeError: Cannot read property 'createComponent' of undefined
    at eval 
(http://run.plnkr.co/xAOPiq8V7A8KhStG/app/extractorgrid.component.ts!transpiled:41:48)
    at ZoneDelegate.invoke 
(https://npmcdn.com/[email protected]?main=browser:323:29)
    at Object.onInvoke 
(https://npmcdn.com/@angular/[email protected]//bundles/core.umd.js:9004:45)
    at ZoneDelegate.invoke 
(https://npmcdn.com/[email protected]?main=browser:322:35)
    at Zone.run (https://npmcdn.com/[email protected]?main=browser:216:44)
    at https://npmcdn.com/[email protected]?main=browser:571:58
    at ZoneDelegate.invokeTask 
(https://npmcdn.com/[email protected]?main=browser:356:38)
    at Object.onInvokeTask 
(https://npmcdn.com/@angular/[email protected]//bundles/core.umd.js:8995:45)
    at ZoneDelegate.invokeTask 
(https://npmcdn.com/[email protected]?main=browser:355:43)
    at Zone.runTask 
(https://npmcdn.com/[email protected]?main=browser:256:48)consoleError @ 
[email protected]?main=browser:461_loop_1 @ 
[email protected]?main=browser:490drainMicroTaskQueue @ 
[email protected]?main=browser:494ZoneTask.invoke @ [email protected]?main=browser:426
[email protected]?main=browser:463 Error: Uncaught (in promise): TypeError: Cannot 
read property 'createComponent' of undefined
    at resolvePromise (https://npmcdn.com/[email protected]?main=browser:538:32)
    at https://npmcdn.com/[email protected]?main=browser:574:18
    at ZoneDelegate.invokeTask 
(https://npmcdn.com/[email protected]?main=browser:356:38)
    at Object.onInvokeTask 
(https://npmcdn.com/@angular/[email protected]//bundles/core.umd.js:8995:45)
    at ZoneDelegate.invokeTask 
(https://npmcdn.com/[email protected]?main=browser:355:43)
    at Zone.runTask (https://npmcdn.com/[email protected]?main=browser:256:48)
    at drainMicroTaskQueue 
(https://npmcdn.com/[email protected]?main=browser:474:36)
    at HTMLElement.ZoneTask.invoke 
(https://npmcdn.com/[email protected]?main=browser:426:22)

But the same child component I can load it from any other normal component 
i.e. non kendogrid component. Please refer the working solution 
<https://plnkr.co/edit/VyFdZOT8CoElkSQ129jc?p=preview> 
https://plnkr.co/edit/VyFdZOT8CoElkSQ129jc?p=preview of 
it.

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to