This question is locked. New answers and comments are not allowed.
I cannot seem to Ajax bind an MVC Grid which has been loaded as a partial view using jQuery.load. This works absolutely fine in IE9/IE8 but does not bind in IE7.
My JavaScript calls my action method to which returns a partial view containing my Telerik grid:<%= Html.Telerik().Grid<ProfileMetricUi>() .Name(Model.NodeUniqueIdentifier) //.ToolBar(commands => { commands.SubmitChanges(); }) .DataBinding(db => db.Ajax() .Select("_GetPractices", "Profiling", new { selection = ViewData["selection"], AccountId = ((SelectedTreeNode)ViewData["node"]).AccountId, Value = ((SelectedTreeNode)ViewData["node"]).Value }) .Update("_SaveChanges", "Profiling")) .DataKeys(key => key.Add(k => k.Id)) .Scrollable() .Editable(edit => edit.Mode(GridEditMode.InCell)) .ClientEvents(events => events.OnDataBinding("Grid_onDataBinding").OnError("Grid_onError").OnRowDataBound("rowDataBound")) .Sortable(order => order.OrderBy(f => { if (Model.SortDescending) { f.Add(fld => fld.Value).Descending(); } else { f.Add(fld => fld.Value).Ascending(); } })) .Columns(column => { column.Bound(col => col.EntityName) .Sortable(true) .HeaderHtmlAttributes(new { Class = "td-entity" }) .HtmlAttributes(new { Class = "td-entity" }) .ClientTemplate("<div class='practiceDetail' onClick='javascript: Clicked(this);'><span class='<#= PracticeStyle #>' name='practiceName'><#= EntityName #></span><div class='<#= StyleClass #>'><span style='width:<#= Percentage #>%'></span></div></div>") .ReadOnly(true); column.Bound(col => col.Value) .HeaderHtmlAttributes(new { Class = "td-entity-a" }) .HtmlAttributes(new { Class = "td-entity-a" }) //.ClientTemplate("<input type='text' value='<#= Value #>' />") .ReadOnly(true); column.Bound(col => col.Profiled) .HeaderHtmlAttributes(new { Class = "td-entity-a select" }) .HtmlAttributes(new { Class = "td-entity-a" }) //.Format("<input type='radio' />") .Encoded(false) .ClientTemplate("<input type='checkbox' <#= Profiled ? checked='checked' : '' #> />") .Sortable(false) .ReadOnly(false); }) %>This successfully returns and then binds on the “_GetPractices” action method. However, in IE7 while the partial view returns ok and the grid displays it shows “No Records” and does not bind.
Following is Javascript to load view:
$('#listMetrics').load('<%= Url.Action("CheckSelectedNode", "Profiling") %>', { Value: nodeValue, AccountID: cmbselectedAccountId, AccountName: cmbselectedAccountText }, FixGrid);Any ideas?