I'm using angular2 kendo ui grid and binding data to the grid by http call
before http call returns the data i need to show busy indicator without showing grid header till data is assigned.How to achive this
Thanks, Raghu s
I'm using angular2 kendo ui grid and binding data to the grid by http call
before http call returns the data i need to show busy indicator without showing grid header till data is assigned.How to achive this
Thanks, Raghu s
I achieved this by declaring the following within the HTML template.
Add a new div above the grid with a conditional loading text for when the grid is loading:
Add a div wrapper around the grid for when the loading in completed:
In
app.component.ts
As of version 3.1.0, the Kendo UI Grid for Angular features a built-in loading indicator functionality.
See the sample documentation here.
The basic premise is to set the
[loading]
property of thekendo-grid
:And then in your service class set a boolean loading variable to true or false depending on the status of your queries to your remote data sources:
You can use one of following elements adding conditionally -
As I did
As mentioned here http://www.telerik.com/kendo-angular-ui/components/styling/icons/#toc-flipping