When I use StockChart, any action of setState can't trigger onRefresh??

1 Answer 141 Views
Charts
Steve
Top achievements
Rank 1
Iron
Iron
Steve asked on 04 Aug 2022, 09:53 AM
For example, in this project, when I click point on the graph and setNumber, refreshChart has been set to false but the chart is still refreshed, and handleChartRefresh is not triggered.


objective-cherry-2jm3h3 - CodeSandbox

1 Answer, 1 is accepted

Sort by
-1
Filip
Telerik team
answered on 08 Aug 2022, 07:55 AM

Hello, Steve,

This is a known issue and we have logged it in our items where it can be monitored and tracked here:

https://github.com/telerik/kendo-react/issues/1343


For now, the only thing that I can suggest is to  set the partialRedraw property of the StockChart to true:

https://codesandbox.io/s/focused-mcclintock-w9zb2j

I hope this helps.

Regards, FilipProgress Telerik

The Premier Dev Conference is back! 

Coming to you live from Progress360 in-person or on your own time, DevReach for all. Register Today.


Bojan
Top achievements
Rank 1
commented on 15 May 2023, 08:59 PM

Hi, I see that the issue https://github.com/telerik/kendo-react/issues/1343 is not fixed yet, but I am wondering about your suggestions to use PartialRedraw? It doesn't look like code on codesandbox works, because onRefresh is never triggered. Am I missing something?
Filip
Telerik team
commented on 17 May 2023, 03:47 PM

Hi, Bojan,

The given suggestion was intended as a workaround in order to prevent the chart to refresh every time the user clicks the chart points, however as you have observed this approach will not trigger the onRefresh.

Regards,
Filip
Tags
Charts
Asked by
Steve
Top achievements
Rank 1
Iron
Iron
Answers by
Filip
Telerik team
Share this question
or