This question is locked. New answers and comments are not allowed.
Hi,
I have been following along with the example code included with the MVC extensions for doing inline editing. I am using Server Binding and have created display and editor templates for the 2 needed drop-downs. Below is the EditData.aspx file with all the bindings.
The grid appears as it should but when I click edit the page posts but does not go into edit mode.
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<EditableWeeklyStatistic>>" %> <%@ Register assembly="System.Web.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" namespace="System.Web.UI.WebControls" tagprefix="asp" %> <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> Data Entry </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> <%= Html.Telerik().Grid(Model) .Name("Grid") .DataKeys(keys => { keys.Add(w => w.Id).RouteKey("Id"); keys.Add(w => w.LocationId).RouteKey("LocationId"); keys.Add(w => w.ReportWeek).RouteKey("ReportWeek"); }) .DataBinding(dataBinding => dataBinding.Server() .Select("EditData", "Status") .Update("UpdateWeeklyStatistic", "Status")) .Columns(columns => { columns.Bound(w => w.Id).Width(60).ReadOnly(); columns.Bound(w => w.MetricDescription).Width(200).ReadOnly(); columns.Bound(w => w.PercentComplete).Width(130); columns.Bound(w => w.TrackingToETC).Width(100).Title("Tracking to ETC"); columns.Bound(w => w.Blockers).Width(130); columns.Bound(w => w.ETCDate).Width(130).Title("ETC Date"); columns.Command(commands => commands.Edit()).Width(180).Title("Edit"); }) .Scrollable(scrolling => scrolling.Height(1000)) .Sortable() .Pageable(paging => paging.PageSize(20) .Style(GridPagerStyles.NextPreviousAndNumeric) .Position(GridPagerPosition.Both)) %> </asp:Content>As you can see, there are 3 keys to the db table that I am using. PercentComplete and Blockers are supposed to be the drop-downs. I did try commenting out those 2 columns to see if it was the drop-downs causing the issue but it still did not go into edit mode.
I've been over and over the code comparing all the components to the example: Views, templates (display templates do work just fine), controller, editable object, TypeConverter code, etc. but can't seem to find the issue.
FYI: using EF, MVC2, version 416 of the extensions.
Any help would be greatly appreciated. Thanks.