In ASP.NET, I have a webpage that uses a RadGrid (v.2013.2.717.40 Dev). The RadGrid has AllowPaging="true" and it uses OnPageIndexChanged. When I browse the webpage, the RadGrid has about 20 pages of data (with like 10 rows per page). When I click any of the page buttons below the grid (First Page, Previous Page, Next Page, or Last Page), the PageIndexChanged event will execute as expected. But if I first select one of the rows in the grid before clicking a page button, the PageIndexChanged will not execute.
For example, when I first browse my webpage, the grid is on page 1 of 20. If I click the Next Page button until I get to, let's say, page 3 of 20, the PageIndexChanged will execute each time I click the Next Page button. If I were to then select one of the rows within the grid, and click the Next Page button, the grid will navigate to the next page, but it will not execute the PageIndexChanged event. Once I am at the next page, if I click the Next Page button again (with no rows selected), the PageIndexChanged event will fire, unless I first select one of the rows in the grid; in which case, once a row is selected, the PageIndexChanged will not fire.
When I google on this, I find others having a similar problem, but not quite the same as I describe here. How do I make sure that PageIndexChanged will fire every time, regardless of whether I have (or don't have) a row selected in the grid?
Thank you
For example, when I first browse my webpage, the grid is on page 1 of 20. If I click the Next Page button until I get to, let's say, page 3 of 20, the PageIndexChanged will execute each time I click the Next Page button. If I were to then select one of the rows within the grid, and click the Next Page button, the grid will navigate to the next page, but it will not execute the PageIndexChanged event. Once I am at the next page, if I click the Next Page button again (with no rows selected), the PageIndexChanged event will fire, unless I first select one of the rows in the grid; in which case, once a row is selected, the PageIndexChanged will not fire.
When I google on this, I find others having a similar problem, but not quite the same as I describe here. How do I make sure that PageIndexChanged will fire every time, regardless of whether I have (or don't have) a row selected in the grid?
Thank you