I have a number of grids that use the Endless scroll with the scrollable height set to 500 (see helper code below) with a default page size of 10. Sometimes the vertical scollbar doesn't appear on the grid even though it indicates that there are more records then are being shown (pages).
If i set the height to something else, for instance 472 it seems to show the scroll bar, but i am worried this is driven by the size of the rows and won't be durable.
public static GridBuilder<T> EndlessScrollDefault<T>(this GridBuilder<T> gridBuilder, string emptyMsg = "There are no records to show.", int? height = 500) where T : class
{
var rVal = gridBuilder.Pageable(page =>
{
page.Enabled(true);
page.PageSizes(false);
page.Input(false);
page.Numeric(false);
page.PreviousNext(false);
page.Refresh(true);
page.Messages(message => message.Empty(emptyMsg));
})
.Scrollable(s => s.Endless(true));
if (height != null)
{
rVal = rVal.Scrollable(s => s.Height(height.Value));
}
return rVal;
}