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

[Solved] V2011-1-315

6 Answers 166 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Rafael
Top achievements
Rank 1
Rafael asked on 17 Mar 2011, 02:42 PM
I have updated my project on 2011.1.315 version
It has been compiling perfect, but I get an error while runtime(see attached image)
Please help

6 Answers, 1 is accepted

Sort by
0
nachid
Top achievements
Rank 1
answered on 17 Mar 2011, 03:27 PM
You need to update your App_GlobalResources with the one that comes with the last release
0
Rafael
Top achievements
Rank 1
answered on 17 Mar 2011, 03:29 PM
thanks nachid for prompt response - it works
0
Rafael
Top achievements
Rank 1
answered on 21 Mar 2011, 05:27 PM
Another issue I faced to is that I can't receive model in controller method (in previous version it works fine)

Here is my view

<%@ Page Title="Users" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<iPuzzle.Models.mUser>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">

</asp:Content>


<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">


<% Html.Telerik().Grid(Model)
        .Name("UserGrid")
        .Columns(columns =>
        {
            columns.Bound(c => c.UserId).Title("UserId").ReadOnly(true).Visible(false);
            columns.Bound(c => c.UserName).Title("User").ReadOnly(true).Visible(true);
            columns.Bound(c => c.Email).Title("Email");
            columns.Bound(c => c.CreateDate).Title("Creation Date").Format("{0:d}").ReadOnly(true);
            columns.Bound(c => c.LastLoginDate).Title("Last Login").Format("{0:d}").ReadOnly(true);
            columns.Bound(c => c.Comment).Title("Comment");
            columns.Command(comand =>
            {
                comand.Edit();
                comand.Delete();
            }).Title("Command");
        })
        .ToolBar(commands => commands.Custom().Action("Register", "Account").Text("New User"))
        .DataKeys(keys => keys.Add(c => c.UserId))
        .DataBinding(dataBinding => dataBinding.Server()
               .Select("UserList", "User")
               .Update("EditUser", "User")
               .Delete("DeleteUser", "User"))
        .Sortable()
        .Filterable()
        .Editable(e => e.DisplayDeleteConfirmation(true))
        .Pageable(builder => builder.PageSize(15))
        .Groupable()
        .Scrollable(scrolling => scrolling.Height(450))
        .PrefixUrlParameters(false)
        .HtmlAttributes(new { Style = "width: 1200px" })
        .Render();
    %>   
</asp:Content>


My DELETE method in controller 

 public ActionResult DeleteUser(mUser _user)
        {
            _manager.Users.DeleteUser(_user);
            return RedirectToAction("UserList", this.GridRouteValues());
        }

everything is pretty simple but in new version it doesn't work
Please advise what was missed? 
0
Thomas
Top achievements
Rank 1
answered on 25 Mar 2011, 09:45 AM
I have the same problem, since I upgrade my project to V2011-1-315.
0
Rafael
Top achievements
Rank 1
answered on 25 Mar 2011, 09:52 AM
I had to change code to Ajax binding...
0
Thomas
Top achievements
Rank 1
answered on 25 Mar 2011, 10:08 AM
Thanks. 
But,  I want know if It exists another solution to resolve this problem or if it's a Bug in this new version.
If there aren't issue, I'll try your solution.
Tags
General Discussions
Asked by
Rafael
Top achievements
Rank 1
Answers by
nachid
Top achievements
Rank 1
Rafael
Top achievements
Rank 1
Thomas
Top achievements
Rank 1
Share this question
or