Need a special offer?Find out if your project fits.
+

Angular 7 data.expanded property not working

Answered
Naidu asked on June 17, 2020

 
Hi,
Below is my code 
if (data.expanded) {
cell.text = '<div/* style="margin-left:6px;*/">'
+ '<i class="fa fa-minus" title="Click to collapse "></i>'
+ data.member.caption + "</div>";
}
else {
cell.text = '<div/* style="margin-left:6px; margin-bottom: 2px;*/">'
+ '<i class="fa fa-plus" title="Click to expand"></i>'
+ data.member.caption + "</div>";
}
I am writing the code in .ts file there we are getting the debug issue under the data.expanded. Please suggest me.
Throwing the issue “Property expanded is not exist in CellData”

2 answers

Public
Vera Didenko Vera Didenko Flexmonster June 18, 2020

Hello, Naidu, 
 
Thank you for reaching out to us. 
 
Looking deeper, we have noticed that the expanded property of the cell data object is missing in the TypeScript definitions. Our team will provide an update to include this property with the ETA 30th of June. 
 
Meanwhile, we kindly suggest referring to the expanded property in the following way:  data["expanded"]
 
Please let us know if this helps. 
 
Kind regards, 
Vera 

Public
Mykhailo Halaida Mykhailo Halaida Flexmonster July 1, 2020

Hi Naidu,
 
We are glad to inform you that the collapsed, expanded, drilledUp, drilledDown, and negativeNumberFormat properties were added to the TypeScript definitions.
 
This is included in the 2.8.10 version of Flexmonster. You are welcome to update the component. Here is our updating to the latest version tutorial for guidance.
 
Please let us know if everything works fine for you.
 
Best regards,
Mykhailo

 

Please login or Register to Submit Answer