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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

142080 Jan 17,2019 03:47 PM UTC Jan 21,2019 04:44 AM UTC ASP.NET Core - EJ 2 1
loading
Tags: DataGrid
Allen
Asked On January 17, 2019 03:47 PM UTC

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?

Pavithra Subramaniyam [Syncfusion]
Replied On 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. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon