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.

AJAX

Thread ID:

Created:

Updated:

Platform:

Replies:

118284 Feb 19,2015 12:12 PM Feb 20,2015 08:14 AM ASP.NET MVC 1
loading
Tags: Chart
BROSSET FREDERIC
Asked On February 19, 2015 12:12 PM

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.


Akbar Basha K M [Syncfusion]
Replied On February 20, 2015 08:14 AM

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.



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.

;