Level property not available on Cell Data Object

Answered
Devesh asked on July 24, 2019

Hi,
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 :
https://www.flexmonster.com/blog/grid-customization-and-styling-beyond-css/
Attached screen shot.

6 answers

Public
Vera Didenko Vera Didenko Flexmonster July 26, 2019

Hello,
 
 
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,
Vera

Public
Devesh July 29, 2019

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

Public
Vera Didenko Vera Didenko Flexmonster July 31, 2019

Hello,

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,
Vera

Public
Devesh August 8, 2019

Thanks Vera.
Its working now.

Public
Naidu June 18, 2020

Property 'expanded' does not exist on type 'CellData'

Public
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, 
Vera

Please login or Register to Submit Answer