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

Master-Detail Grids Example

1 Answer 227 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 12 Dec 2017, 05:49 PM

In trying to move the Master-Detail Grid example from the Telerik site [ https://www.telerik.com/kendo-angular-ui/components/grid/advanced-features/hierarchy/ ] to a VS Code solution, I am greeted by the following error when the solution is served;

"ERROR in src/app/category-details.component.ts(44,39): error TS2345: Argument of type 'Object' is not assignable to parameter of type '{ CategoryID: number; }'."

I have found some threads suggesting this may be due to a change in Angular 2.2.

Any thoughts as to why this solution still works as a Plunker, yet not as a VS Code solution; what am I missing here?

1 Answer, 1 is accepted

Sort by
0
Steve
Top achievements
Rank 1
answered on 12 Dec 2017, 09:08 PM

Mea culpa - a closer review of the components revealed the index.html was missing some important lines of code...a simple re-copy of the index.html from the Plunker, followed by "personalization" edits fixed the issue...

"If you want to improve, be content to be thought foolish and stupid." --Epictetus, Greek philosopher

Tags
General Discussions
Asked by
Steve
Top achievements
Rank 1
Answers by
Steve
Top achievements
Rank 1
Share this question
or