We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Sorting Columns Causes Sparkline in other column to clear out and not show graph.

I have a column with template columns and normal columns. One of the columns loads data via Javascript(using created=function) to a Sparkline graph in one of the columns for each row. On initial load it works fine, whenever I sort any of the other columns the Sparkline graphs all go blank. Any idea why this is happening?

1 Reply

PS Pavithra Subramaniyam Syncfusion Team January 21, 2019 04:44 AM UTC

  
Hi Allen, 
 
Greeting from Syncfusion, 
 
Query: Why the Sparkline template value is destroyed while sort any other columns? 
 
As per your query, the sparkline template data is bounded in the created event which is triggered for EJ2 Grid initial rendering alone. Since, we suspect that the sparkline data is not re-rendered after sorting the EJ2 Grid, We suggest you to use dataBound  event instead of created event to achieve your requirement which is trigger for every EJ2 Grid action. Please refer the following Documentation for more information. 
 
 
Please get back to us, if you need any further assistance. 
 
Regards, 
Pavithra S. 


Loader.
Up arrow icon