🎉 Flexmonster Pivot Table & Charts v2.8 has arrived!Read the blog post
Get Free Trial
Get Free Trial

Level property not available on Cell Data Object

Devesh asked on July 24, 2019

I am trying to change the color of rows based on the cell level in ‘fm-pivot’ component but the ‘level’ property is not available in ‘CellData’ object as mentioned in grid customization guide. I am using 2.7.x version of ‘ng-flexmonster’. 
Please help me resolving the issue. Here is the article link that I referred :
Attached screen shot.

4 answers

Vera Didenko Flexmonster July 26, 2019

Thank you for writing to us.
The reason for this is that the level property is not specified in node_modules\@types\flexmonster\index.d.ts.
Our team will notify you as soon as we update the node_modules\@types\flexmonster\index.d.ts file on our end.
As a temporary workaround, you can add

level?: number; 

after the 343-rd line manually to the CellData interface in your node_modules\@types\flexmonster\index.d.ts file.
Please let us know if you have further questions.
Best Regards,

Devesh July 29, 2019

Thanks Vera,
Please let me know asap when this is fixed.

Vera Didenko Flexmonster July 31, 2019


We are happy to let you know that we have updated Flexmonster types.
Now the level property is available in the cellData object.

You are welcome to update to the latest @types/flexmonster.

Please let us know if everything works fine for you.

Best Regards,

Devesh August 8, 2019

Thanks Vera.
Its working now.

Please login or Register to Submit Answer