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

Chart not loading second time in partial view

Hi Team,

I use partial view to render chart and it is working fine at the first time.
However, in Ajax success method I call partial view to render the chart and it does not work.
Please help me on this.

Thanks in advance

1 Reply

DD Dharanidharan Dharmasivam Syncfusion Team January 2, 2019 06:57 AM UTC

Hi Jsu, 
We have analyzed your query with provided information. We have tried to replicate the reported issue, we are afraid that we can’t replicate the reported scenario at our end. Consider the following sample, here we have rendered refreshed the chart from partial view in button click event using the ajax request which is working fine. Find the code snippet below to achieve this. 
<div class="row" style="margin-top:10px"> 
    <button onclick="refreshChart()">Refresh Charts</button> 
Initial rendering of chart 
<div class="row" id="sensorContentContainer"> 
Refreshed the chart in ajax request 
    function refreshChart() { 
         url: '@Url.Action("Create")', 
         type: 'GET', 
        success: function (response) { 
Before Refresh: 
After Refresh: 
Since, we are not aware of the exact scenario on which the issue is reproduced. We would like to know the following details which will be helpful in further analysis and provide you the solution sooner. 
  • Try to reproduce the reported scenario with the above sample and revert us.
  • Provide your sample with replication steps.
  • Or else provide your code snippet.
  • Do you have got any console errors if so, kindly share the details.

Live Chat Icon For mobile
Up arrow icon