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

RadGrid pager Next does not proceed beyond the second page

1 Answer 53 Views
Grid
This is a migrated thread and some comments may be shown as answers.
JB
Top achievements
Rank 1
JB asked on 23 Apr 2010, 09:30 PM
Hi,

I am using a RadGrid control in an radAjaxManager in a DNN environment.
The grid is databound to a DataSet.

The grids guts are similar to the cardview in the RadGrid examples which uses a Masterview and an Itemtemplate.

Here is the problem:
The pager mode is set to "NextPrevAndNumeric" and everything is working dandy...except when using the Prev and Next options.
It appears that they only recognize the first 2 pages no matter what the page size.

I can select the page number and get the correct page but, clicking the next or previous does not not behave as expected.
I can get the previous and next options to work properly if I set teh enableSEOPageing to true. However, this kills my PageSize from sticking as you page through the grids pages and so has been discarded in teh example.

Here is the markup:


                                <strong>TEST GRID</strong></p>  
                            <telerik:RadGrid ID="RadGrid3"  AllowPaging="True" OnNeedDataSource="RadGrid3_NeedDataSource"   
                                runat="server" GridLines="None" Width="100%" EnableViewState="true">  
                                <PagerStyle Position="TopAndBottom" AlwaysVisible="true" ShowPagerText="true" Mode="NextPrevAndNumeric"  ></PagerStyle>  
                                <MasterTableView ShowHeader="false" AllowPaging="True"  > 
                                    <ItemTemplate> 
                                        <asp:Panel runat="server" ID="ItemContainer" style="width: 645px;">  
                                            <table style="width: 645px;">  
                                                <tr> 
                                                    <td valign="top" class="style8" colspan="4">  
                                                        <asp:HyperLink runat="server" ID="HyperLink3" Text='<%#Eval("Product")%>' Font-Bold="True" 
                                                            NavigateUrl='<%#Eval("Url")%>' ToolTip="View Product"></asp:HyperLink> 
                                                    </td> 
                                                    <br /> 
                                                </tr> 
                                                <tr> 
                                                    <td width="25%" align="center">  
                                                        <asp:HyperLink ID="HyperLink2" runat="server" Text="" NavigateUrl='<%#Eval("Url")%>'>  
                                                            <asp:Image ID="rdlImage" BorderStyle="Solid" BorderColor="#8b847e" BorderWidth="1" 
                                                                runat="server" ImageUrl='<%# Eval("ImageUrl")%>' ToolTip="View Product" /></asp:HyperLink> 
                                                    </td> 
                                                    <td class="style9">  
                                                        <label style="font-family: Arial; font-size: 8pt">  
                                                            <b>Manufactuer:</b> 
                                                            <%#Eval("Manufacturer")%></label><br /> 
                                                        <label id="PNum" style="font-family: Arial; font-size: 8pt">  
                                                            <b>Part Number:</b> 
                                                            <%#Eval("Part Number")%></label><br /> 
                                                        <label style="font-family: Arial; font-size: 8pt">  
                                                            <b>Manfacturer Part Number:</b> 
                                                            <%#Eval("Man Part Number")%></label><br /> 
                                                        <label style="font-family: Arial; font-size: 8pt">  
                                                            <b>Description:</b> 
                                                            <%#Eval("Description")%></label>  
                                                    </td> 
                                                    <td valign="middle" align="center">  
                                                        <asp:Panel ID="pnlPrice" runat="server">  
                                                        </asp:Panel> 
                                                        <br /> 
                                                        <div style="border-width: 1px; border-style: dotted; background-color: #E2E2E2; text-align: center;  
                                                            width: 100px;"> 
                                                            <asp:HyperLink runat="server" ID="lViewProduct" Text=" View Product " Font-Bold="True" 
                                                                NavigateUrl='<%#Eval("Url")%>'></asp:HyperLink> 
                                                        </div> 
                                                        <br /> 
                                                        <div id="divAddToCart" runat="server">  
                                                            <class="jsaddtocart" href='<%# ConstructAddToCartURL(Eval("ProductID"),Eval("VariantID")) %>'>  
                                                                <span class="jshideme">Add to cart</span></a><p> 
                                                                </p> 
                                                        </div> 
                                                    </td> 
                                                </tr> 
                                          </table>   
                                        </asp:Panel> 
                                    </ItemTemplate> 
                                </MasterTableView> 
                            </telerik:RadGrid> 

Thanks in advance!

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 29 Apr 2010, 09:01 AM
Hello JB,

I have noticed that my colleague Yavor has already addressed your support ticket that you have submitted on the same matter. To avoid duplicate posts I would suggest that you continue the communication in the support thread.

Regards,
Martin
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
JB
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or