Do I have to Settime out to load column aggregates on grid load ?

Hi Guys,

I am trying to set up aggregate columns. which i am creating dynamically. Basically i have start and finish date. Based on those dates i dynamically create columns and create aggregate columns. While it shows all columns properly. but to load the columns and respective data. I have to use set time Out.

setTimeout(() => {this.treegridColumnsAgg = [{ showChildSummary: true,columns: ejcolAggregates}];},5000);

If i don't do above code then i get an error.

ej2-treegrid.es2015.js:221 [EJ2TreeGrid.Warning]: INVALID FORMAT For more information, refer to the following documentation links: Number format: https://ej2.syncfusion.com/documentation//base/intl.html?#supported-format-string. Date format: https://ej2.syncfusion.com/documentation//base/intl.html?#manipulating-datetime. Message: TypeError: value.toFixed is not a function

What is the right way to load aggregates.

1 Reply 1 reply marked as answer

MP Manivannan Padmanaban Syncfusion Team March 31, 2021 01:41 PM UTC

Hi Parth, 

Greetings from Syncfusion Support. 

We are unable to replicate the reported problem at our end. However, we are able to apply the aggregate columns dynamically on tree grid loading without issue. Please refer to the below sample link, 

After referred the above sample, still facing an issue. Please get back to us, with the below details. 
  1. Share the Product version detail
  2. Reproduce the reported issue in the shared sample Or share the issue reproducible sample.
  3. Share the error details with complete stack trace.

Provided details, will help us to resolve the reported issue as early as possible. 

Regards, 
Manivannan Padmanaban 


Marked as answer
Loader.
Up arrow icon