This question is locked. New answers and comments are not allowed.
When I have a grid pulling ajax data I set the settings like this:
Pageable(settings => settings.Total(Model.Total).PageSize(10).Position(GridPagerPosition.Top))
But if Model.Total is 0 I get the error:
"value" cannot be negative or zero
Surely this is a bug. It is normal for a result set to be empty under some circumstances. Is there something else I should set?
Thanks,
Trevor
Pageable(settings => settings.Total(Model.Total).PageSize(10).Position(GridPagerPosition.Top))
But if Model.Total is 0 I get the error:
"value" cannot be negative or zero
Surely this is a bug. It is normal for a result set to be empty under some circumstances. Is there something else I should set?
Thanks,
Trevor