This is a migrated thread and some comments may be shown as answers.
Lost fields after browser back
1 Answer 10 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Patrick
Top achievements
Rank 1
Patrick asked on 10 Aug 2011, 11:35 AM
Hi,
I created a grid with some templates in it. When I go in one of the edit screens and I press the browsers back button the template fields are gone. How can I solve this problem?(see grid code at the bottom)

Patrick
@model IEnumerable<Comp.Domain.Model.Contact>
 
<h2>title</h2>
@(Html.Telerik().Grid(Model)
                .Name("Grid")
                .Columns(columns =>
                             {
                              columns.Template(@<text>@(string.IsNullOrEmpty(item.Sexe)||item.Sexe.ToLower()!="f" && item.Sexe.ToLower()!="m"?
                                        Global.Unknown:(item.Sexe.ToLower()=="m"?Global.Contact_Male:Global.Contact_Female))</text>).Title(Global.Contact_Sex);
                              columns.Bound(o => o.Initials).Title(Global.Contact_Initials);
                              columns.Bound(o => o.ChristianName).Title(Global.Contact_CristianName);
                              columns.Template(@<text> @item.Between @item.LastName</text>).Title(Global.Contact_Lastname);
                              columns.Bound(o => o.EndDate).Format("{0:dd/MM/yyyy}").Title(Global.Contat_Enddate);
                              columns.Template(@<text>@(item.IsPending ? Global.Status_Pending : Global.Status_Accepted)</text>).Title(Global.Contact_Status);
                                 columns.Template(o => (o.IsPending ? "" : Html.ActionLink("[Edit]", "Edit",new {personId=o.PersonId} ).ToHtmlString()));
                             })
)

1 Answer, 1 is accepted

Sort by
0
Patrick
Top achievements
Rank 1
answered on 10 Aug 2011, 01:32 PM
nevermind. My localization was screwing some things up and created this problem...
Tags
Grid
Asked by
Patrick
Top achievements
Rank 1
Answers by
Patrick
Top achievements
Rank 1
Share this question
or