This question is locked. New answers and comments are not allowed.
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
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())); }))