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

Grid client databinding (data loading indicator?)

1 Answer 80 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Top achievements
Rank 1
loi asked on 18 Nov 2011, 06:30 AM
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

    .DataBinding(dataBinding => dataBinding.Ajax().Select("_GetSomeData", "Test", new { categoryID = ViewBag.CategoryID}).OperationMode(GridOperationMode.Client))   
    .Sortable(sorting => sorting.SortMode(GridSortMode.SingleColumn))
    .Columns(columns =>
        columns.Bound(o => o.Selected)
            .Title(" ")
        columns.Bound(o => o.Text)
        columns.Bound(o => o.Value)
    .ClientEvents(events => events
script type="text/javascript">
    function onGridDataBinding(e)
    function onGridDataBound(e)

Is there a built-in support for this that I missed?

1 Answer, 1 is accepted

Sort by
Telerik team
answered on 18 Nov 2011, 05:19 PM
Hello Misterii0,

The Grid natively provides a loading indicator inside its pager row. You can see it in action here:

If this is not visible enough for your users, you can implement a custom loading panel, and show and position it manually. Show it in the Grid's OnDataBinding event and hide it in the OnDataBound event.

the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
Asked by
Top achievements
Rank 1
Answers by
Telerik team
Share this question