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

[Solved] Upgrading from 2010 Q3 to 2011 Q1 Breaks Autocomplete Controls on a Grid

0 Answers 41 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Johan
Top achievements
Rank 1
Johan asked on 20 Apr 2011, 11:33 AM

I have an app developed using 2010 Q3 which has columns on the grid that show autocomplete boxes.  But, after upgrading to 2011 Q1 the autocomplete boxes no longer pass the selected item back to the grid.

Editor Template

<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<string>" %>
<% Html.Telerik().AutoComplete()
        .Name(ViewData.TemplateInfo.GetFullHtmlFieldName(string.Empty))
        .DataBinding(binding => binding.Ajax().Select("AutoCompleteAjaxLoading",
                "Home"))
        .Filterable(filtering =>
            {
                filtering.FilterMode(AutoCompleteFilterMode.StartsWith);
            })
         .Render();
%>

Grid Definition

<%= Html.Telerik().Grid<TelerikBug.Models.RowRecord>()
           .Name("Grid")
           .Columns(columns =>
            {
                columns.Bound(o => o.ID).Visible(false);
                columns.Bound(o => o.Option1);
                columns.Bound(o => o.Option2);

                columns.Command(commands =>
                {
                    commands.Edit();
                }).Width(200);
            })
            .DataKeys(keys => keys.Add(c => c.ID))
            .DataBinding(dataBinding =>
            {
                dataBinding.Ajax().Select("Select", "Home").Enabled(true);
                dataBinding.Ajax().Update("Update", "Home").Enabled(true);
            }))
           %>

When the Update method is called the 2011Q1’s TryUpdateModel fails to populate the model in question while 2010Q3’s TryUpdateModel works 100%.

The attached archive has the same code in two projects one for 2010Q3 and the other 2011Q1.  Has anyone else experienced this?  Any ideas?
Tags
Grid
Asked by
Johan
Top achievements
Rank 1
Share this question
or