🍉 Meet Flexmonster Pivot Table & Charts 2.9.Check out all the hot features!
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.

6 answers

Vera Didenko 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 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.

Naidu June 18, 2020

Property ‘expanded’ does not exist on type ‘CellData’

Vera Didenko Vera Didenko Flexmonster June 18, 2020

Hello, Naidu, 
Thank you for reaching out to us. 
Please see our reply in the following thread: https://www.flexmonster.com/question/angular-7-data-expanded-property-not-working/
Kind regards, 

Please login or Register to Submit Answer