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

first and last page buttons in paging do not work

2 Answers 172 Views
Grid
This is a migrated thread and some comments may be shown as answers.
lina fetisova
Top achievements
Rank 1
lina fetisova asked on 28 Jan 2011, 11:48 AM
Good day! I have gor such a grid on page

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ExpertAdvice.ascx.cs" Inherits="Pharm.New.UserModules.ExpertAdvice" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<br />
<telerik:RadGrid ID="grQuestions" runat="server" CssClass="MyGridClass" ShowHeader="false"
        AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" Skin="FarmPortal2" EnableEmbeddedSkins="false"
        GridLines="None" Width="100%" PageSize="10" GroupPanel-Width="100%">
<MasterTableView TableLayout="Auto" Width="100%">
    <PagerStyle AlwaysVisible="true" />
    <Columns>
        <telerik:GridBoundColumn DataField="Id" HeaderText="Id" ReadOnly="True" UniqueName="Id" SortExpression="Id"  Visible="false"/>
        <telerik:GridBoundColumn DataField="Post" HeaderText="?????" ReadOnly="True" UniqueName="Post" SortExpression="Post"  />
    </Columns>
</MasterTableView>
    <ClientSettings EnableRowHoverStyle="true" AllowColumnsReorder="True" AllowDragToGroup="True" Resizing-EnableRealTimeResize="true"
        ReorderColumnsOnClient="True">
        <Selecting AllowRowSelect="True" />
    </ClientSettings>
</telerik:RadGrid>

When I click first and last page buttons in Grid paging I have got an error which asks me to add enableEventValidation="false" string into <pages> in Web.config file in my project (for example I use RadGrid with paging in other pages of my project and first and last page buttons works fine there).
After I add enableEventValidation="false" string into <pages> in Web.config file in my project first and last page buttons click do not work too - there is no more error, but nothing happens at all. prev/newx page buttons works well. All other gid's first and last page buttons work well. What can I do?

Thank you,
Lina

2 Answers, 1 is accepted

Sort by
0
lina fetisova
Top achievements
Rank 1
answered on 31 Jan 2011, 10:49 AM
sorry, I've forgot to add RadAjaxManager to my rid - that's was the reasn of the bug.
0
Pavlina
Telerik team
answered on 31 Jan 2011, 11:14 AM
Hi Lina,

I followed your scenario in order to replicate the described issue but to no avail. Please find attached to this message a simple test page which is working properly and let me know if it helps to resolve the issue.

Kind regards,
Pavlina
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Grid
Asked by
lina fetisova
Top achievements
Rank 1
Answers by
lina fetisova
Top achievements
Rank 1
Pavlina
Telerik team
Share this question
or