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

[Solved] Q1 2010.1.222 - Grid ajax delete not working in firefox.

1 Answer 73 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.
IQworks
Top achievements
Rank 1
IQworks asked on 08 Mar 2010, 01:19 AM
  Hi,
      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 />   
   <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 = 2OtherParms = "{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 = 2OtherParms = "Create" }, null)%></p>   
  
this is my ajax action 
  // 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

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 08 Mar 2010, 08:07 AM
Hello IQworks,

We cannot reproduce this problem locally. I suggest you open a support ticket and send us some code illustrating the problem.

Regards,
Atanas Korchev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
IQworks
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or