Breaking change in 2013.3.1316?

7 posts, 0 answers
  1. Darren
    Darren avatar
    6 posts
    Member since:
    Mar 2013

    Posted 17 Jan 2014 Link to this post

    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).
  2. Frazer Jamieson
    Frazer Jamieson avatar
    2 posts
    Member since:
    May 2010

    Posted 19 Jan 2014 Link to this post

    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.
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Daniel
    Admin
    Daniel avatar
    2117 posts

    Posted 20 Jan 2014 Link to this post

    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!
  5. Jelly Master
    Jelly Master avatar
    39 posts
    Member since:
    Oct 2010

    Posted 20 Jan 2014 Link to this post

    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?
  6. Daniel
    Admin
    Daniel avatar
    2117 posts

    Posted 22 Jan 2014 Link to this post

    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!
  7. Darren
    Darren avatar
    6 posts
    Member since:
    Mar 2013

    Posted 24 Jan 2014 Link to this post

    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?
  8. Jan Olsmar
    Jan Olsmar avatar
    35 posts
    Member since:
    Mar 2006

    Posted 25 Jan 2014 in reply to Darren Link to this post

    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. 
Back to Top
UI for ASP.NET MVC is VS 2017 Ready