This question is locked. New answers and comments are not allowed.
I have a radgrid some thing like this. I am making an Ajax call to controller
<%=
this.Html.Telerik().Grid<DailyPlannerGridRecord>().Name("TravelGrid").DataKeys(keys => keys.Add(c => c.Id)).
Footer(false).ToolBar(
commands =>
{
commands.Template(
"<a id='addGroundButton' class='t-button t-button-icontext t-grid-add' href='"
+ this.ResolveClientUrl("~/") + "Ground/AddGround?selectedDate=" + this.Session["selectedDateEdit"]
+
"'><span class='t-icon t-add'></span>Add Ground</a> <a id='addAirButton' class='t-button t-button-icontext t-grid-add' href='"
+ this.ResolveClientUrl("~/") + "Air/AddAir?selectedDate=" + this.Session["selectedDateEdit"]
+
"'><span class='t-icon t-add'></span>Add Air</a> <a id='addHotelButton' class='t-button t-button-icontext t-grid-add' href='"
+ this.ResolveClientUrl("~/") + "Hotel/AddHotel?selectedDate=" + this.Session["selectedDateEdit"]
+ "'><span class='t-icon t-add'></span>Add Hotel</a>");
}).ClientEvents(
events => events.OnDataBound("Grid_onDataBound_travel")).DataBinding(
dataBinding =>
dataBinding.Ajax().Select(
"TravelSelectAjaxEditing", "Travel", new { selectedDate = this.ViewData["selectedDate"] })).
Columns(
columns =>
{
columns.Bound(p => p.Image).Format(
"<img src='" + this.ResolveClientUrl("~/") + "Images/" + "{0}.PNG'/>").Encoded(false).Title("").Width(
24);
columns.Bound(p => p.Line1).Title("Title").Template(p => p).ClientTemplate(
"<div style='background-Color:<#= BgColor #>'> <#= Line1 #></div>");
columns.Bound(p => p.AttachmentIsPersonal).Format(
"<img src='" + this.ResolveClientUrl("~/") + "Images/" + "{0}.png'/>").Width(47).Title("").Encoded(
false);
columns.Bound(p => p.AttachmentImage).Format(
"<img src='" + this.ResolveClientUrl("~/") + "Images/" + "{0}.png'/>").Width(30).Title("").Encoded(
false);
columns.Template(m => m).ClientTemplate(
"<a href='" + this.ResolveClientUrl("~/")
+
"<#= TravelType #>/Edit<#= TravelType #>/<#= Id #>?selectedDate=<#= SelectedDate #>' class='t-button t-grid-edit t-button-icon t-button-icon t-button-bare'><span class='t-icon t-edit'></span></a><a href='"
+ this.ResolveClientUrl("~/")
+
"<#= TravelType #>/DeleteItem/<#= Id #>?selectedDate=<#= SelectedDate #>' onClick='return onDelete()' class='t-button t-grid-delete t-button-icon t-button-icon t-button-bare'><span class='t-icon t-delete'></span></a>")
.Width(75).Title("Actions");
}).Editable(editing => editing.Mode(GridEditMode.PopUp))%>
By default when the grid is loading it display the No Records Template. Instead I want to have some loading panel until the request is processed.
Is it possible to do that. Demo would be really appreciated
<%=
this.Html.Telerik().Grid<DailyPlannerGridRecord>().Name("TravelGrid").DataKeys(keys => keys.Add(c => c.Id)).
Footer(false).ToolBar(
commands =>
{
commands.Template(
"<a id='addGroundButton' class='t-button t-button-icontext t-grid-add' href='"
+ this.ResolveClientUrl("~/") + "Ground/AddGround?selectedDate=" + this.Session["selectedDateEdit"]
+
"'><span class='t-icon t-add'></span>Add Ground</a> <a id='addAirButton' class='t-button t-button-icontext t-grid-add' href='"
+ this.ResolveClientUrl("~/") + "Air/AddAir?selectedDate=" + this.Session["selectedDateEdit"]
+
"'><span class='t-icon t-add'></span>Add Air</a> <a id='addHotelButton' class='t-button t-button-icontext t-grid-add' href='"
+ this.ResolveClientUrl("~/") + "Hotel/AddHotel?selectedDate=" + this.Session["selectedDateEdit"]
+ "'><span class='t-icon t-add'></span>Add Hotel</a>");
}).ClientEvents(
events => events.OnDataBound("Grid_onDataBound_travel")).DataBinding(
dataBinding =>
dataBinding.Ajax().Select(
"TravelSelectAjaxEditing", "Travel", new { selectedDate = this.ViewData["selectedDate"] })).
Columns(
columns =>
{
columns.Bound(p => p.Image).Format(
"<img src='" + this.ResolveClientUrl("~/") + "Images/" + "{0}.PNG'/>").Encoded(false).Title("").Width(
24);
columns.Bound(p => p.Line1).Title("Title").Template(p => p).ClientTemplate(
"<div style='background-Color:<#= BgColor #>'> <#= Line1 #></div>");
columns.Bound(p => p.AttachmentIsPersonal).Format(
"<img src='" + this.ResolveClientUrl("~/") + "Images/" + "{0}.png'/>").Width(47).Title("").Encoded(
false);
columns.Bound(p => p.AttachmentImage).Format(
"<img src='" + this.ResolveClientUrl("~/") + "Images/" + "{0}.png'/>").Width(30).Title("").Encoded(
false);
columns.Template(m => m).ClientTemplate(
"<a href='" + this.ResolveClientUrl("~/")
+
"<#= TravelType #>/Edit<#= TravelType #>/<#= Id #>?selectedDate=<#= SelectedDate #>' class='t-button t-grid-edit t-button-icon t-button-icon t-button-bare'><span class='t-icon t-edit'></span></a><a href='"
+ this.ResolveClientUrl("~/")
+
"<#= TravelType #>/DeleteItem/<#= Id #>?selectedDate=<#= SelectedDate #>' onClick='return onDelete()' class='t-button t-grid-delete t-button-icon t-button-icon t-button-bare'><span class='t-icon t-delete'></span></a>")
.Width(75).Title("Actions");
}).Editable(editing => editing.Mode(GridEditMode.PopUp))%>
By default when the grid is loading it display the No Records Template. Instead I want to have some loading panel until the request is processed.
Is it possible to do that. Demo would be really appreciated
