ASP.NET 5 MVC 6 beta 8 regressions

14 posts, 0 answers
  1. Landry
    Landry avatar
    33 posts
    Member since:
    Oct 2015

    Posted 30 Oct 2015 Link to this post

    Hi,

     

    I have just updated my ASP.NET 5 MVC 6 project to the beta8 using the provided beta8 2015.3.1026 nuget package for Telerik UI for ASP.NET MVC (https://www.nuget.org/packages/Kendo.Mvc/2015.3.1026​).

     There seems to have been many regressions in component fonctionnalities.

     For instance, it is no longer possible to use Deferred initialization for grids or notifications.

    @Html.Kendo().DeferredScriptsFor("grid", false)
     The application does not throw any exception but the components are not initialized anymore and nothing appears...

    I would suppose this is the case for all components allowing deferred initialization.

     

    Also, it is no longer possible to use Edition (inline or popup) with grids.

     

    I had to comment the folowing features in order for the page to not crash with a HTTP Error 502.3 - Bad Gateway

    @(Html.Kendo().Grid<Country>()
        .Name("grid")
        //.Deferred()
        .Columns(columns =>
        {
            columns.Bound(p => p.Description);
            columns.Bound(p => p.Code);
            columns.Bound(p => p.Region);
            columns.Bound(p => p.Oecd);
            columns.Bound(p => p.UE);
            //columns.Command(command => { command.Edit().Text(" ").CancelText(" ").UpdateText(" "); command.Destroy().Text(" "); }).Width(100);
        })
        //.ToolBar(toolbar => toolbar.Create())
        //.Editable(editable => editable.Mode(GridEditMode.InLine))
        .Pageable()
        .Sortable(sortable => sortable.SortMode(GridSortMode.MultipleColumn))
        .Scrollable()
        .Filterable(filterable => filterable.Mode(GridFilterMode.Row))
        .HtmlAttributes(new { style = "margin-top:20px;height:400px;" })
        .DataSource(dataSource => dataSource
            .Ajax()
            .PageSize(20)
            .Model(model =>
            {
                model.Id(p => p.Id);
            })
            .Sort(sort => sort.Add("Description").Ascending())
            .Read(read => read.Action("Get", "Countries"))
            .Create(update => update.Action("Create", "Countries"))
            .Update(update => update.Action("Update", "Countries"))
            .Destroy(update => update.Action("Delete", "Countries"))
            .Events(events => events.Error("error_handler"))
         )
    )

  2. Rosen
    Admin
    Rosen avatar
    3234 posts

    Posted 03 Nov 2015 Link to this post

    Hello Landry,

    Thanks for the report. 

    Unfortunately, the DeferredScripts issue is caused by change in the way View is rendered. It is rendered asynchronously and the widget is not able register it scripts before the DeferredScriptsFor is called. Thus, currently in order to use the Deferred Scripts feature you will need to rendered widgets by calling their Render method:

    @{Html.Kendo().Grid<Country>()
        .Name("grid")
        .Deferred()
        /*..*/
        .Render();
    }

    Regarding the issue related to the editing. We were able to identify its cause and to address it - again it is due to a change in the ASP.NET MVC framework.

    Regards,
    Rosen
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Landry
    Landry avatar
    33 posts
    Member since:
    Oct 2015

    Posted 06 Nov 2015 in reply to Rosen Link to this post

    Hello Rosen,

     

    Thank you for your answer.

     

    Will the fix for the edition problem be released before the next build of the ASP.NET 5 MV6 framework (RC)?

  5. Rosen
    Admin
    Rosen avatar
    3234 posts

    Posted 06 Nov 2015 Link to this post

    Hello Landry,

     

    The fix should be included in the next service pack of Kendo UI, which will be made available sometime next week.

     

    Regards,
    Rosen
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  6. Landry
    Landry avatar
    33 posts
    Member since:
    Oct 2015

    Posted 13 Nov 2015 Link to this post

    With the new 2015.3.1111 nuget package, when i use the Deferred option in a grid, it says that there is not definition for 'Columns' in the DeferredWidgetBuilder<Grid<Buyer>> type and that not extension methods exists for it.

     

    It seems I can't use the .Deferred() and the .Columns() options together anymore.

     

    The problem exist both with or without the workaround provided previously (with the use of .Render() for handling deferred scriptexecution).

     

    Is it still possible to use deferred execution?

  7. Landry
    Landry avatar
    33 posts
    Member since:
    Oct 2015

    Posted 13 Nov 2015 in reply to Landry Link to this post

    nevermind this.

     

    We just have to use .Deferred() at the end of the grid configuration (after .Columns()).

     

    This works now.

     

    Thanks!

  8. Landry
    Landry avatar
    33 posts
    Member since:
    Oct 2015

    Posted 13 Nov 2015 Link to this post

    It seems that now the grid assumes the options Groupable and ColumnMenu are on by defaults...

     

    It is possible to disable them explicitly with .Groupable(false) and .ColumnMenu(false) but this is not the documented default behaviour.

  9. Landry
    Landry avatar
    33 posts
    Member since:
    Oct 2015

    Posted 13 Nov 2015 in reply to Landry Link to this post

    Ok so this is a be weird.

     

    This problem occurs only when in a different culture than english.

    When using english as a culture, the grouping and columnmenu is off by default.

    When switching culture to french for instance, they are on by default.

     

    It is possible to disable grouping explicitly when setting the option in the grid configuration, but the columnmenu stays on even then telling it not to i the grid configuration.

  10. Rosen
    Admin
    Rosen avatar
    3234 posts

    Posted 13 Nov 2015 Link to this post

    Hello Landry,

     

    Indeed we have change the use of Deferred feature, it should be the set after the all of the configuration. This is described here.

    Regarding the other issue you have described. Unfortunately, I'm not able to recreate it locally. Could you please provide a small runnable sample which demonstrates the behavior in question.

     

    Regards,
    Rosen
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  11. Landry
    Landry avatar
    33 posts
    Member since:
    Oct 2015

    Posted 13 Nov 2015 in reply to Rosen Link to this post

     

    Apparently, the documentation you provided for the deferred feature is not up to date with the latest beta build.

    With the new nuget package, it is no longer necessary to use the .Render() in order for the deferred execution to work;

    We just need to specify the .Deferred() at the end of the grid configuration.

     

    I'll prepare a working solution to demonstrate the problem that I am encountering with localization and defaults options of the grid.

     

    Thank you very much for your time.

  12. Landry
    Landry avatar
    33 posts
    Member since:
    Oct 2015

    Posted 13 Nov 2015 Link to this post

    Here is a working solution that demonstrates the problem.

     

     

    When we switch culture from en-US to fr-FR, the grid enables grouping and columnMenu when it should not.

  13. Rosen
    Admin
    Rosen avatar
    3234 posts

    Posted 16 Nov 2015 Link to this post

    Hello Landry,

     

    Thanks for the sample. We were able to observe the issue and to address it. The fix will be available with the next update of the nuget package.

     

    Regards,
    Rosen
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  14. Lee
    Lee avatar
    20 posts
    Member since:
    Jun 2014

    Posted 19 Jan in reply to Rosen Link to this post

    I think I'm having the same issue.  I'm also using 2015.3.1026 with asp.net 5 MVC 6 and using the beta8.  I can add simple controls to my views but If I attempt to add anything complex such as toolbar, grid it does not render when I preview my view.  If I add the .Render() at the end of my script the whole section is underlined red indicating an error that reads "Identifier expected" and "Cannot implicitly convert type 'void' to 'object'.  Consequently many of the objects such as dropdown and grid don't even appear in the intellisense.  If I attempt to upgrade my telerik to 2016.1.112 I get many errors about assembly references not in the project.  I can change my project.json back to 2015.3.1026 and they go away.
  15. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 20 Jan Link to this post

    Hi Lee,

    I suggest you to migrate to the latest version of ASP.NET vNext (RC1 final), which is available since November 2015, and utilize the up-to-date version of Telerik UI for ASP.NET MVC 6 from our public NuGet feed.

    You may also review the information from this blog post which includes references to MVC6 sample apps built with Telerik UI for ASP.NET MVC.

    Best regards,
    Sebastian
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
UI for ASP.NET MVC is VS 2017 Ready