This is a migrated thread and some comments may be shown as answers.

Ajax DataBinding using POST instead of GET

0 Answers 24 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Top achievements
Rank 1
James asked on 28 Nov 2011, 11:52 PM
This is very strange.  I noticed that the chart control I've implemented is requesting data via POST from the Ajax DataBinding.  Here is a screenshot of Fiddler showing the request:

[ Image ]

Here is my chart mockup.  This is essentially the same as the example on this site (just so I could get a chart rendering):

 .Title(title => title.Text("Representative Sales vs. Total Sales"))
 .Legend(legend => legend.Position(ChartLegendPosition.Bottom).Visible(true))
 .SeriesDefaults(series => series.Column().Stack(false).Labels(labels => labels.Visible(true).Format("${0:#,##0}")))
 .Series(series =>
 series.Column("RepSales").Name("Rep. Sales");
 series.Column(s => s.TotalSales).Name("Total Sales").Labels(labels => labels.Position(ChartBarLabelsPosition.InsideEnd));
 .CategoryAxis(axis => axis.Categories(s => s.DateString))
 .ValueAxis(axis => axis.Numeric().Labels(labels => labels.Format("${0:#,##0}")))
 .Tooltip(tooltip => tooltip.Visible(true).Format("${0:#,##0}"))
 .DataBinding(dataBind => dataBind.Ajax().Select(Model.WidgetRefreshAction, Model.WidgetRefreshController))
 .HtmlAttributes(new { style = "width: 99%; height: 400px;" })

I have updated to the most recent version of the library (2011.3.1115).
Asked by
Top achievements
Rank 1
Share this question