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
close icon

AJAX

Hi,

I was forced to switch Unobstrusive in Web.Config for Schedule

<add key="UnobtrusiveJavaScriptEnabled" value="false" />

Now AJAX load for Chart PartialView Render Nothing :

@{
    Syncfusion.JavaScript.DataVisualization.Models.ChartProperties mod = new Syncfusion.JavaScript.DataVisualization.Models.ChartProperties();
    Syncfusion.JavaScript.DataVisualization.Models.Series srs = new Syncfusion.JavaScript.DataVisualization.Models.Series();
    
    foreach(BarInfo bi in Model){
        Syncfusion.JavaScript.DataVisualization.Models.Points pts = new Syncfusion.JavaScript.DataVisualization.Models.Points(bi.Name, bi.Value);
        srs.Points.Add(pts);
    }

    srs.Opacity = 0.65;
    srs.Type = SeriesType.StepArea;
    srs.Fill = "#009BDE";
    mod.Series.Add(srs);
    mod.CommonSeriesOptions.EnableAnimation = true;
    mod.Legend.Visible = false;
    
}
@Html.EJ().Chart(id, mod)

In View :
            $.post(
                '@Url.Action("GetDetails", "InstituteTill", null, Request.Url.Scheme)', { type: $(this).attr('id') },
                function (data) {
                    $("#content").html(data);
                    ej.widget.init();

Was working before unobstrusive, set false, 
Anyone can give a clue ? Thx.


1 Reply

AB Akbar Basha K M Syncfusion Team February 20, 2015 01:14 PM UTC

Hi Dumond,
Thanks for using syncfusion product. We have analyzed your requirement and we like to inform you that, if you set the value of UnobtrusiveJavaScriptEnabled key as false you need to add the following code in layout page.
@Html.EJ().ScriptManager()
if you set the value of UnobtrusiveJavaScriptEnabled key as true you need to refer the following script file
ej.unobtrusive.min.js
Script Location : http://www.syncfusion.com/downloads/support/directtrac/118284/ej.unobtrusive.min-513102681.zip
If still you face the problem please share your sample with us. This would be helpful for us to serve you.
Please let us know if you have any concern.
Regards,
Akbar Basha KM.



Loader.
Live Chat Icon For mobile
Up arrow icon