Hello, I have a RadGrid with a pageSize = 10 and i used a Server Side Paging to retrieve my data. The problem is when the radgrid had the values startRowIndex = 10 and MaximumRows = 10 from the objectDatasource, it show just one record in the Page 2. In the other Pages it's ok. Here is my Code :
| <telerik:RadGrid ID="gdvGC_0007" ShowStatusBar="True" |
| runat="server" AllowPaging="True" AllowCustomPaging="True" AllowSorting="True" |
| GridLines="None" Width="98%" Skin="Gray" AutoGenerateColumns="False" MasterTableView-DataKeyNames="ListID" |
| DataSourceID="odsListGeneric" Visible="False" OnItemDataBound="GridViews_ItemDataBound" OnItemCreated="GridViews_ItemCreated"> |
| <HeaderContextMenu Skin="Web20"> |
| <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> |
| </HeaderContextMenu> |
| <MasterTableView Width="100%"> |
| <Columns> |
| <telerik:GridBoundColumn DataField="ElementValue" HeaderText="English" SortExpression="En_DName" /> |
| <telerik:GridBoundColumn DataField="ElementValueFr" HeaderText="French" SortExpression="Fr_DName" /> |
| <telerik:GridBoundColumn DataField="ElementValueSp" HeaderText="Spanish" SortExpression="Sp_DName" /> |
| <telerik:GridBoundColumn DataField="Reserved" HeaderText="Reserved" Visible="false" /> |
| <telerik:GridTemplateColumn> |
| <ItemTemplate> |
| <asp:RadioButton ID="rdSelect" runat="server" AutoPostBack="True" OnCheckedChanged="rdSelect_CheckedChanged" /> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
| </Columns> |
| </MasterTableView> |
| <ClientSettings> |
| <Selecting AllowRowSelect="True"></Selecting> |
| </ClientSettings> |
| <FilterMenu Skin="Web20"> |
| <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> |
| </FilterMenu> |
| <PagerStyle Mode="NextPrevAndNumeric" /> |
| </telerik:RadGrid> |
| <asp:ObjectDataSource ID="odsListGeneric" runat="server" EnablePaging="True" TypeName="elementUIC" |
| SelectMethod="SelectTriElements" SelectCountMethod="getRecordCount" SortParameterName="sortParameter" |
| StartRowIndexParameterName="startRowIndex" MaximumRowsParameterName="maximumRows" |
| DataObjectTypeName="CElement" OldValuesParameterFormatString="original_{0}"> |
| <SelectParameters> |
| <asp:Parameter Direction="Output" Name="myRowsCount" Type="Int32" /> |
| <asp:QueryStringParameter DbType="Int32" QueryStringField="LvGroupID" Name="LvGroupID" /> |
| <asp:QueryStringParameter DbType="String" QueryStringField="Element" Name="Element" /> |
| </SelectParameters> |
| </asp:ObjectDataSource> |