I have RadGrid on a page the is not ajaxified (for a reason). The page Mode is set to "NextPrevAndNumeric". Clicking on the Numeric page buttons work, but the Next and Previous buttons do not. When I click on them, they throw the error "Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> ..." I set enableEventValidation="false" (just to test), and the error goes away, but the buttons do nothing.
I created a simple version to demonstrate. (remember, there is no RadAjaxManager or RadUpdatePanel on the page)
Code Behind:
I created a simple version to demonstrate. (remember, there is no RadAjaxManager or RadUpdatePanel on the page)
<html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> </head> <body> <form id="form1" runat="server"> <asp:ScriptManager runat="server"></asp:ScriptManager> <telerik:RadGrid ID="theGrid" runat="server" AutoGenerateColumns="false" OnNeedDataSource="theGrid_NeedDataSource" EnableViewState="false" AllowPaging="true"> <MasterTableView PageSize="25"> <PagerStyle AlwaysVisible="true" Position="Top" Mode="NextPrevAndNumeric" /> <Columns> <telerik:GridBoundColumn HeaderText="Col1" DataField="Col1"> </telerik:GridBoundColumn> <telerik:GridBoundColumn HeaderText="Col2" DataField="Col2"> </telerik:GridBoundColumn> </Columns> </MasterTableView> </telerik:RadGrid> </form> </body> </html>Code Behind:
protected void theGrid_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e) { DataTable tbl = new DataTable(); tbl.Columns.Add("Col1", typeof(string)); tbl.Columns.Add("Col2", typeof(string)); for (int i = 0; i < 50; i++) { tbl.Rows.Add(i.ToString(), i.ToString()); } theGrid.DataSource = tbl; }