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.
Unfortunately, activation email could not send to your email. Please try again.

Partial View

Thread ID:

Created:

Updated:

Platform:

Replies:

126391 Oct 13,2016 01:00 AM Oct 13,2016 06:48 AM ASP.NET MVC 1
loading
Tags: HeatMap
Bibhu Kalyan Das
Asked On October 13, 2016 01:00 AM

I have the heatmap generated when the page laod for the first time, but when i select some value from dropdown, and try to load the partial view, it does not load. It somehow comes as an empty div.


In _Layout.cshtml, i have
.....
    <script src="@Url.Content("~/js/jsviews.min.js")"></script>
        <script src="~/lib/jsrender/jsrender.js"></script>
        <script src="@Url.Content("~/js/jquery.easing-1.3.min.js")"></script>
        <script src="@Url.Content("~/js/ej.web.all.min.js")"></script>
        <script src="@Url.Content("~/js/ej.unobtrusive.min.js")"></script>
        <script src="@Url.Content("~/js/CommunityIndicator.js")"></script>
        <script src="@Url.Content("~/js/bootstrap-tagsinput.js")"></script>
        <script src="~/js/site.min.js" asp-append-version="true"></script>
    </environment>

    @Html.EJ().ScriptManager()



In Main CSHTML

@model Syncfusion.JavaScript.DataVisualization.Models.HeatMapProperties
<div class="rm-padding" id="heatmapcontainer">
                                        @{ Html.RenderPartial("CIChart", Model); }                                    
                                    </div>


In Partial view

@model Syncfusion.JavaScript.DataVisualization.Models.HeatMapProperties
@using Syncfusion.JavaScript.DataVisualization.Models.Collections

@{Html.EJ().HeatMap("heatmap", Model as Syncfusion.JavaScript.DataVisualization.Models.HeatMapProperties).Render(); }


In JS

 $.ajax({
                type: "POST",
                url: "CommIndicator",
                data: postData

            })
            .done(function (partialViewResult) {
                $("#heatmapcontainer").html(partialViewResult);
                ej.widget.init($("#heatmapcontainer"));
            });



In Controller

 public ActionResult CommIndicator(List<String> values)
        {

.....

return PartialView("CIChart",Heatmap);

}



Kameshwaran R [Syncfusion]
Replied On October 13, 2016 06:48 AM

Hi Kalyan Das, 
   
A support incident has been created under your account to track the status of the reported query. Please log on to our support website to check for further updates.   
   
Regards,   
Kameshwaran R.  


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.

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.

;