Commands.Custom

2 posts, 1 answers
  1. Simon Christ
    Simon Christ avatar
    6 posts
    Member since:
    Aug 2009

    Posted 27 Aug 2014 Link to this post

    Hi

    I worked with Telerik.Web.MVC version 2012.3.1018.

    I upgraded to Telerik.Web.MVC verison 2013.2.611.

    Unfortunatlely my grid do not work with this new version.

    It can’t find commands.custom().
    It tell my, that it can't find this definition.

    My code :

    @(Html.Telerik().Grid<Mail>()
    .Name("Grid")
    .DataKeys(keys => keys.Add(c => c.ID))
    .DataBinding(dataBinding =>
          dataBinding.Ajax()
          .Select("_Index", "Geschaeft")
    )

    .Columns(columns =>
     {
            columns.Command(commands =>
            {
                commands.Custom("editDetail")
                .ButtonType(type)
                .HtmlAttributes(new { @class = "editDetail", @title = "Geschäft editieren" })
                .Text("edit")
                .DataRouteValues(route =>
                 route.Add(o => o.GeschaeftID).RouteKey("ID"))
                 .Ajax(false)
                 .Action("Edit", "Geschaeft", (RouteValueDictionary)ViewBag.GridState);
              }).Width(38).Title("");
    ...
     
    What can I do? 

    Thank you for your assistance.
  2. Answer
    Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2310 posts

    Posted 27 Aug 2014 Link to this post

    Hi Simon,


    The Telerik MVC Extensions have been discontinued after a one-year-long maintenance phase, which was announced in mid-2012. As a result, technical support is not available. We strongly recommend using UI for ASP.NET MVC instead.
    As for the current question, make sure that all files are updated correctly and there are no syntax errors in the Grid configuration. It seems that there is a missing closing bracket at the end.

    Regards,
    Dimiter Madjarov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top