This question is locked. New answers and comments are not allowed.
Hi,
The GridPagerSettingsBuilder does not allow a Total value of zero, however zero is a perfectly acceptable value - you might be binding to an empty data set. Therefore the following throws an exception:
To fix change the method to:
I've been using this fix in a custom build and it appears to work fine.
Cheers,
Kev
The GridPagerSettingsBuilder does not allow a Total value of zero, however zero is a perfectly acceptable value - you might be binding to an empty data set. Therefore the following throws an exception:
<%
= Html.Telerik().Grid<T>()
.Pageable(pager => pager.Total(0))
To fix change the method to:
public virtual GridPagerSettingsBuilder Total(int value)
{
Guard.IsNotNegative(value, "value");
pager.Total = value;
return this;
}
I've been using this fix in a custom build and it appears to work fine.
Cheers,
Kev