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

ColumnResizingService not available in TableDirective

7 Answers 878 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mojtaba
Top achievements
Rank 1
Mojtaba asked on 04 May 2020, 10:33 AM

Hello,

When I'm using a simple table, I get the following error.

ERROR Error: Uncaught (in promise): NullInjectorError: StaticInjectorError(AppModule)[TableDirective -> ColumnResizingService]:
  StaticInjectorError(Platform: core)[TableDirective -> ColumnResizingService]:
    NullInjectorError: No provider for ColumnResizingService!

It seems that there is a TableDirective from kendo where its selector is table tag, and this directive requires ColunResizingService which can not be injected for some reason.

First of all, why kendo team wrote a directive that catches any table? That doesn't sound a good practice to me.

Second, how can I fix this issue? I want a simple table without any process on that.

Best regards,

Mojtaba

7 Answers, 1 is accepted

Sort by
0
Svet
Telerik team
answered on 06 May 2020, 05:30 AM

Hi Mojtaba,

Thank you for the provided error and details.

We are currently unaware of such issue. That is why I tried to reproduce it in a StackBlitz example where I use a Grid and a regular HTML table next to each other:

https://stackblitz.com/edit/angular-shranj?file=app/app.component.ts

but the functionality is as expected and both elements are rendered without errors.

What I can suggest is to make sure that the latest Kendo Ui for Angular Grid package v 4.7.1 is used:

https://www.telerik.com/kendo-angular-ui/components/grid/changelog/

In general we recommend using the latest version of the Amgular framework and the Kendo UI for Angular components. That ensures that you are able to benefit from the most recent bug fixes and newest features and enhancements. Please remove the existing node_modules folder and any existing package-lock.json file and then reinstall the latest versions.

I hope this helps. Please provide any further relevant details in case the issue persists. Thank you in advance.

Regards,
Svetlin
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Mojtaba
Top achievements
Rank 1
answered on 06 May 2020, 08:43 AM

Hi Svetlin,

Thank you for the reply.

 I will update the packages and see if the problem still exists.

Regards,

Mojtaba

0
Svet
Telerik team
answered on 07 May 2020, 08:48 AM

Hi Mojtaba,

Sure, take your time. Please let us know in case the issue persists.

Regards,
Svetlin
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Mojtaba
Top achievements
Rank 1
answered on 21 May 2020, 10:53 AM

Hi Svetlin,

Sorry for delayed response, as I had some inconsistencies with updating to the latest version of Kendo packages.

Now, I have the latest version and I still get the error. See the image attached here.

Best regards,

Mojtaba

0
Ivan
Telerik team
answered on 25 May 2020, 03:24 AM

Hi Mojtaba,

 

We will check if we can have TableDirective loaded on demand, bu my guess is not because of Angular.

Regarding the error it is good also to update all system dependencies like @angular , core-js, zone.js, rxjs. Like in this stackblitz sample in section Dependencies.

Regards,
Ivan
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Mojtaba
Top achievements
Rank 1
answered on 26 May 2020, 03:21 PM

Hi Ivan,

Thank you for the reply.

I still can not understand what you mean when you say "if we can have TableDirective loaded on demand"! Based on my knowledge of Angular, directives select the elements based of their selectors. That said, since the selector of kendo TableDirective is 'table', it will grab any table element. Maybe you should have had a narrower selector like '[KendoTable]'.

 

By the way, I am almost using the latest version of those common packages. I forked your StackBlitz and pasted my all my dependencies there, but it stopped working for some reason; you can have a look. https://stackblitz.com/edit/angular-shranj-qxk8yr

 

Regards,

 

Mojtaba

0
Ivan
Telerik team
answered on 28 May 2020, 12:39 PM

Hello Mojtaba,

Sorry for misunderstood I meant to have split up and to load only those modules that are needed, we have such feature requests.

Regarding not working stackblitz sample it is about core-js@3 package, we are bond to core-js@2 for now. Please refer to this stackblizt sample, from which you can copy packages versions.

Regards,
Ivan
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
General Discussions
Asked by
Mojtaba
Top achievements
Rank 1
Answers by
Svet
Telerik team
Mojtaba
Top achievements
Rank 1
Ivan
Telerik team
Share this question
or