This question is locked. New answers and comments are not allowed.
Hi,
Sorry for posting a bug report here but my account won't let me file a support ticket and I couldn't see anywhere else to report a bug!
I'm using custom binding so I have something like this in my code:
However the GridCommand.PageSize property isn't being set correctly; it always has a default value of 10. Looking at the source for GridActionAttribute there is the following snippet:
Changing this to:
Should fix things.
Cheers,
Kev
Sorry for posting a bug report here but my account won't let me file a support ticket and I couldn't see anywhere else to report a bug!
I'm using custom binding so I have something like this in my code:
[
GridAction(EnableCustomBinding = true, ActionParameterName = "gridCommand")]
public ActionResult Grid(GridCommand gridCommand)
However the GridCommand.PageSize property isn't being set correctly; it always has a default value of 10. Looking at the source for GridActionAttribute there is the following snippet:
GridCommand command =
new GridCommand
{
Page = filterContext.Controller.ValueOf<
int>(GridUrlParameters.CurrentPage)
};
Changing this to:
GridCommand command = new GridCommand
{
Page = filterContext.Controller.ValueOf<
int>(GridUrlParameters.CurrentPage),
PageSize = filterContext.Controller.ValueOf<int>(GridUrlParameters.PageSize)
};
Should fix things.
Cheers,
Kev