Hi,
I am developing a project where we need to plot diagram based on selected item from a drop down. I have added the diagram in a partial view and triggered an ajax call to get diagram partial view. But the partial view returns empty div. I have attached a small demo where I tried to load a partial view on ajax call. Can you please help on this?
Hi Purushothaman
We are validating and update you with more details on February 21st 2022.
Regards
Aravind Ravi
Hi Purushothaman,
We are facing an issue while running your shared sample we
will validate and update you with more details within two business days.
Regards,
Arun Kumar.
|
<div id="main">
@await Html.PartialAsync("Diagram-Partial")
</div>
<div id="Diagram">
</div> |
I am not expecting this answer, what I am looking for is to refresh the diagram based on a event change for example refresh diagram on dropdown selection or button click. I have updated my solution and attached the latest solution. I have 2 partial and I want them the partial should be switched based on a button click. Please don't add the partials in the page and toggle hide/show in button click. I want the partial to be refreshed from the controller. Please check the latest attached solution.
Hi Purushothaman,
Can you please reshare the file we couldn’t able to find any attached sample file?
Regards,
Arun Kumar.
Hi Purushothaman Govindaraj,
We will validate and provide you with more details on 8th March, 2022.
Regards,
Shyam G
Hi Purushothaman Govindaraj,
You should define ejs script tag in the partial view to achieve your requirement.
Code example:
|
Diagram-Refresh.cshtml
<ejs-scripts></ejs-scripts> |
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/SyncfusionDemomodified666113074
Regards,
Shyam G