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

Problem with PageSizeChanged and PageIndexChanged events when creating grid on server

0 Answers 37 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Covertix
Top achievements
Rank 1
Covertix asked on 03 Jun 2012, 09:03 AM
Hi,

I created a grid on server side (following your tutorials), and I have a problem with PageSizeChanged and PageIndexChanged events of the grid.

The events are gettign fired, but the problem is that inside the event GridReport_PageSizeChanged, when I try to get the new value (e.NewPageSize), the value still contains the old one (before the change).
For example, If the initial value is 10, and I change to 20, e.NewPageSize returns 10.
The same happens when the event GridReport_PageIndexChanged is fired when I change the page size from textbox and not from the buttons. e.NewPageIndex property contains the old value. (If I use the number buttons to change the page index it works fine).

Is there any solution? how can I make things work correctly?

Thanks!

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Covertix
Top achievements
Rank 1
Share this question
or