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

Ajax Spinner

1 Answer 112 Views
Grid
This is a migrated thread and some comments may be shown as answers.
David OBrien
Top achievements
Rank 1
David OBrien asked on 27 Aug 2012, 04:11 PM
I read somewhere here in the forums that if you don't set a grid height you don't get the ajax spinner showing that data is loading....

Is this correct?

I want the grid to be only as tall as the data in it so it doesn't look ugly if I have a grid 800 tall with only 1 row in it...

How can I achieve this and still let the user see the spinner?

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 29 Aug 2012, 12:33 PM
Hi David,

I suppose you are talking about the initial load of Grid data. If no height is specified, the data area is zero pixels high, so the loading animation will not be visible indeed. The only way to avoid this without having a precise height is to have a min-height style applied to the Grid data area:

.k-grid-content
{
min-height: 100px;
}


Regards,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
David OBrien
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or