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

Commands.Custom

1 Answer 94 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Simon Christ
Top achievements
Rank 1
Simon Christ asked on 27 Aug 2014, 07:27 AM
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.

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimiter Madjarov
Telerik team
answered on 27 Aug 2014, 02:31 PM
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.

 
Tags
Grid
Asked by
Simon Christ
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Share this question
or