This question is locked. New answers and comments are not allowed.
I have a Telerik grid in my MVC application and when the grid is empty the busy indicator keeps on spinning. There is a javascript error that I assume is a result of this. My grid is coded as:
Html.Telerik().Grid(Model.ViewerCompletedList)
.Name("CompletedUploads")
.DataKeys(dataKeys => dataKeys.Add(p => p.TechnicalKey))
.DataBinding(dataBinding => dataBinding.Ajax().Select("AjaxPortableBinding", "Viewer"))
.Columns(columns =>
{
columns.Bound(f => f.FileName).Title(Resource.AA_Index_Grid_Filename);
columns.Bound(f => f.Name).Title(Resource.AA_Index_Grid_Device);
columns.Bound(f => f.StatusText).Title(Resource.AA_Index_Grid_Status);
columns.Bound(f => f.StartDisplayDate).Title(Resource.AA_Detail_Job_Start);
columns.Bound(f => f.TechnicalKey).Format(
"<select onChange='ViewerFileAction(this)'>" +
"<option value='{0}'>"+ Resource.File_Grid_Select +"</option>" +
"<option value='delete'>"+ Resource.File_Grid_Delete +"</option>" +
"<option value='aview'>"+ Resource.File_Grid_View +"</option>" +
"<option value='save'>"+ Resource.File_Grid_Save +"</option></select>").Encoded(false).Title(" ");
})
.ClientEvents(config => config.OnDataBound("showNoDataText"))
.Pageable()
.Sortable()
.HtmlAttributes(new { @class = "content_table" })
.Render();
It works fine if there is content in the grid, but when it is empty the busy indicator just keeps spinning. How can I get it to stop spinning?
Html.Telerik().Grid(Model.ViewerCompletedList)
.Name("CompletedUploads")
.DataKeys(dataKeys => dataKeys.Add(p => p.TechnicalKey))
.DataBinding(dataBinding => dataBinding.Ajax().Select("AjaxPortableBinding", "Viewer"))
.Columns(columns =>
{
columns.Bound(f => f.FileName).Title(Resource.AA_Index_Grid_Filename);
columns.Bound(f => f.Name).Title(Resource.AA_Index_Grid_Device);
columns.Bound(f => f.StatusText).Title(Resource.AA_Index_Grid_Status);
columns.Bound(f => f.StartDisplayDate).Title(Resource.AA_Detail_Job_Start);
columns.Bound(f => f.TechnicalKey).Format(
"<select onChange='ViewerFileAction(this)'>" +
"<option value='{0}'>"+ Resource.File_Grid_Select +"</option>" +
"<option value='delete'>"+ Resource.File_Grid_Delete +"</option>" +
"<option value='aview'>"+ Resource.File_Grid_View +"</option>" +
"<option value='save'>"+ Resource.File_Grid_Save +"</option></select>").Encoded(false).Title(" ");
})
.ClientEvents(config => config.OnDataBound("showNoDataText"))
.Pageable()
.Sortable()
.HtmlAttributes(new { @class = "content_table" })
.Render();
It works fine if there is content in the grid, but when it is empty the busy indicator just keeps spinning. How can I get it to stop spinning?