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

Manually specify total number of items?

1 Answer 140 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Troy
Top achievements
Rank 1
Troy asked on 01 Mar 2013, 12:05 AM
When I load a page that uses a grid and autobind is set to true the page flashes an empty grid while it is loading data and then populates the data. I thought I'd avoid the 'flash' by manually creating / initializing a table with the first page of data and then initializing the grid with autobind set to false.

The problem is when I do that the page number is 0 and the 'x-y of z items' text shows zero items. I know that's because it doesn't know the page number or total number of items until the data source reads from the server...is there a way I can manually set the variables it needs when the page loads? I tried setting the 'page' property of the grid to 1 but that didn't seem to help.

Thanks,

Troy

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 04 Mar 2013, 06:33 AM
Hello Troy,

What exactly is the code that you have used for initialization?


Regards,
Petur Subev
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
Troy
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or