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

Breaking change in 2013.3.1316?

6 Answers 84 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Darren
Top achievements
Rank 2
Darren asked on 18 Jan 2014, 01:45 AM
Greetings.

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()
        });
});
with these helpers:
<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>
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
sort=&group=&filter=
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).

6 Answers, 1 is accepted

Sort by
0
Frazer Jamieson
Top achievements
Rank 1
answered on 20 Jan 2014, 03:28 AM
Hello
I am getting the same issue with custom parameters not being picked up and sent to the controller. I am reverting back to the prior version until a fix has been released.  The prior version works as expected.
0
Daniel
Telerik team
answered on 20 Jan 2014, 06:50 PM
Hello,

This is a known issue in the service pack release that is already fixed. The additional data for the read request was not included in the serialized request data and was not sent to the server. The fix will be available in the next internal build. I am sorry for the inconvenience caused.

Regards,
Daniel
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Jelly Master
Top achievements
Rank 1
answered on 20 Jan 2014, 10:16 PM
I spent most of today pulling my hair out after updating to this version :(

I can confirm that the following internal build appears to work as before.
kendoui.aspnetmvc.hotfix.2013.3.1309.commercial

I wonder if this latest build has been released a little too early and not gone through all the QA processes.

Do we  know when we will be getting 2014 Q1's release?
0
Daniel
Telerik team
answered on 22 Jan 2014, 04:21 PM
Hi,

The 2014 Q1 release is planned for the second half of March.

Regards,
Daniel
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Darren
Top achievements
Rank 2
answered on 24 Jan 2014, 06:06 AM
Since I am not the only one with this issue, can we possibly get some sort of official reply to this problem? Or do I need to open a support ticket?
0
Jan Olsmar
Top achievements
Rank 1
answered on 25 Jan 2014, 01:45 PM
Thanks for letting me know this issue. After several hours of unnecessary work I found this tread.

I downloaded latest build. 2013.3.1321.440 and now it works like before. 
Tags
Chart
Asked by
Darren
Top achievements
Rank 2
Answers by
Frazer Jamieson
Top achievements
Rank 1
Daniel
Telerik team
Jelly Master
Top achievements
Rank 1
Darren
Top achievements
Rank 2
Jan Olsmar
Top achievements
Rank 1
Share this question
or