This question is locked. New answers and comments are not allowed.
Hi,
I have a grid ....
this is my ajax action
The ajax deletion action appears to work fine in IE7 , but in firefox, the ajax reaction (looks like it does a post back) seems not to work ?
Thanks for your time
I have a grid ....
| <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<BCAnalytics.Models.CompanyVM>>" %> |
| <%--fx 20100304 - Added datepicker and calendar min js files to keep grid row height correct for |
| version 2010.1.222 * ALSO, COMMENT OUT THESE JS FILES TO USE JQUERY INTELLISENCE --%> |
| <script src="../../Scripts/2010.1.222/telerik.datepicker.min.js" type="text/javascript"></script> |
| <script src="../../Scripts/2010.1.222/telerik.calendar.min.js" type="text/javascript"></script> |
| <%if (false) |
| {%> |
| <script src="../../Scripts/jquery-1.4.1.js" type="text/javascript"></script> |
| <% }%> |
| <h3><%= Html.ActionLink((String)Resources.BCAResources.stdClose, "Index", "Work", new { workindex = 0 }, null)%> |
| <br /> |
| <i style="color:Red;"><%=Session["iqResult"]%> </i> </h3> |
| <%= Html.Telerik().Grid(Model) |
| .Name("CompanyGrid") |
| .Columns(columns => |
| { |
| // horizontal scrolling doesnt have Frozen columns in MCV ? |
| // columns.Add(o => o.cMemberNo).Width(30) ; |
| // columns.Add(o => o.cCompanyNo).Width(30); |
| columns.Add(o => o.cCompanyName).Width(185).Title((string)Resources.BCAResources.coxCompany); |
| columns.Add(o => o.cPhone).Title((string)Resources.BCAResources.stdPhone).Width(75); |
| columns.Add(o => o.cGroupCode).Title((string)Resources.BCAResources.coxGroupCode).Width(100); |
| columns.Add(o => o.cEmail).Format(Html.Mailto("{0}", "{0}")).Encoded(false).Width(150); |
| columns.Add(o => o.cDateUpdated).Format("{0:MM/dd/yyyy}").Width(85).Title((string)Resources.BCAResources.stdUpdated); |
| columns.Add(o => o.cCompanyNo).Format(Html.ActionLink((String)Resources.BCAResources.stdEdit, "Index", "Work", new { workindex = 2, OtherParms = "{0}" }, null).ToString()).Encoded(false).Title("").Width(32).Filterable(false); |
| columns.Add(o => o.cCompanyNo).Format(Html.ActionLink((String)Resources.BCAResources.stdDelete, "CompanyDelete", new { Id = "{0}" }, null).ToString()).Encoded(false).Title("").Width(50).Filterable(false); |
| }) |
| //.Ajax(settings => settings.Action("_AjaxBindingCompany", "Company")) |
| .DataBinding(dataBinding => dataBinding.Ajax().Select("_AjaxBindingCompany", "Company")) |
| .Pageable() |
| .Sortable(sort => sort.SortMode(GridSortMode.MultipleColumn)) |
| .Scrollable(scrolling => scrolling.Height(253)) |
| .Filterable() |
| %> |
| <p><%= Html.ActionLink((String)Resources.BCAResources.coxCreateNewCompany, "Index", "Work", new { workindex = 2, OtherParms = "Create" }, null)%></p> |
| // do the ajax binding |
| [GridAction] |
| public ActionResult _AjaxBindingCompany() |
| { |
| IEnumerable<CompanyVM> model = GetCompanies(); |
| return View(new GridModel |
| { |
| Data = model |
| }); |
| } |
The ajax deletion action appears to work fine in IE7 , but in firefox, the ajax reaction (looks like it does a post back) seems not to work ?
Thanks for your time