This question is locked. New answers and comments are not allowed.
I'm just wondering if there is built-in option in the Grid to show some kind of indicator while the grid is loading data on the client side..
Most of our MVC grids are loading data via ajax databinding.. and sometimes it can take a while to before the data is loaded.. We need some sort of indicator to tell users that a grid is loading data.
So far, our work-around was to use this jquery plugin below in the OnDataBinding and OnDataBound grid client events
http://code.google.com/p/jquery-loadmask/
Is there a built-in support for this that I missed?
Most of our MVC grids are loading data via ajax databinding.. and sometimes it can take a while to before the data is loaded.. We need some sort of indicator to tell users that a grid is loading data.
So far, our work-around was to use this jquery plugin below in the OnDataBinding and OnDataBound grid client events
http://code.google.com/p/jquery-loadmask/
@(Html.Telerik().Grid(Model)
.Name("TestingGrid")
.DataBinding(dataBinding => dataBinding.Ajax().Select("_GetSomeData", "Test", new { categoryID = ViewBag.CategoryID}).OperationMode(GridOperationMode.Client))
.Sortable(sorting => sorting.SortMode(GridSortMode.SingleColumn))
.Footer(false)
.Columns(columns =>
{
columns.Bound(o => o.Selected)
.Title(" ")
.Width(150)
.Sortable(false);
columns.Bound(o => o.Text)
.Title("Text");
columns.Bound(o => o.Value)
.Title("Name");
})
.ClientEvents(events => events
.OnDataBinding("onGridDataBinding")
.OnDataBound("onGridDataBound"))
)
<
script
type
=
"text/javascript"
>
function onGridDataBinding(e)
{
$(this).mask('Loading');
}
function onGridDataBound(e)
{
$(this).unmask();
}
</
script
>
Is there a built-in support for this that I missed?