Greetings.
The following worked in the previous release:
with these helpers:
When updating the current release, the controller action is still being called, but it is not being passed the correct parameters. All I see in the console is
I'm obviously not providing those values, nor did I have to before. Has the underlying dataSource object changed, and if so, what do I need to do to make this work?
UPDATE: Just to verify, I rolled the project back to the 2013.3.1119 version, and the code shown above works as expected, so I'd like to know why the updated package behaves differently. I still see the sort, group, and filter parameters, but my custom parameters are included (and are honestly all I care about).
The following worked in the previous release:
$(
'#update-downloads-chart'
).on(
'click'
,
function
(e) {
e.preventDefault();
$(
'#downloads-chart'
).data().kendoChart.dataSource.read(
{
minDate: $(
'#downloads-date-start'
).val(),
maxDate: $(
'#downloads-date-end'
).val()
});
});
<
div
class
=
"widget"
>
<
div
class
=
"widget-title"
>
<
h5
><
i
class
=
"fa fa-bar-chart-o fa-fw"
></
i
> Downloads by Category</
h5
>
</
div
>
<
div
class
=
"widget-content debug"
>
@(Html.Kendo().Chart<
Models.ChartDataItem
>()
.Name("downloads-chart")
.HtmlAttributes(new { @class = "pie" })
.Theme("bootstrap")
.DataSource(ds => ds.Read(read => read.Action("getdownloadsbycategory", "admin")))
.Legend(true)
.Series(series => series
.Donut("DataValue", "DataText")
.Overlay(ChartPieSeriesOverlay.None)
.Labels(labels => labels
.Visible(true)
.Align(ChartPieLabelsAlign.Circle)
.Position(ChartPieLabelsPosition.Center)
.Color("#fff"))
.StartAngle(0)
.Name("Download Type"))
.Tooltip(tooltip => tooltip
.Visible(true)
.Template("#= dataItem.DataText # - #= dataItem.DataValue #"))
)
</
div
>
<
div
class
=
"widget-controls"
>
<
div
class
=
"date-label"
>
Date range:
@(Html.Kendo().DatePicker()
.Name("downloads-date-start")
.Value(today.AddDays(-6).ToShortDateString())
.HtmlAttributes(new { @class = "datepicker" })
)
to
@(Html.Kendo().DatePicker()
.Name("downloads-date-end")
.Value(today.ToShortDateString())
.HtmlAttributes(new { @class = "datepicker" })
)
<
button
type
=
"button"
class
=
"btn btn-small"
id
=
"update-downloads-chart"
>Update</
button
>
</
div
>
</
div
>
</
div
>
sort=&group=&filter=
UPDATE: Just to verify, I rolled the project back to the 2013.3.1119 version, and the code shown above works as expected, so I'd like to know why the updated package behaves differently. I still see the sort, group, and filter parameters, but my custom parameters are included (and are honestly all I care about).