Radgrid paging not working

14 posts, 1 answers
  1. josephjijo
    josephjijo avatar
    24 posts
    Member since:
    Oct 2006

    Posted 15 May 2010 Link to this post

     My radgrid paging is not showing.
    My code is:
    <telerik:RadGrid ID="rdtgContactUs" runat="server" AutoGenerateColumns="False" GridLines="None" 
                                    AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" OnInit="rdtgContactUs_Init" 
                                    OnNeedDataSource="rdtgContactUs_NeedDataSource" OnItemCommand="rdtgContactUs_ItemCommand" 
                                    AllowMultiRowSelection="true" PageSize="25" PagerStyle-Mode="NextPrevAndNumeric" 
     > 
                             
                                    <PagerStyle AlwaysVisible="True"  Position="TopAndBottom"  /> 
                                    <ClientSettings> 
                                        <Selecting AllowRowSelect="true" /> 
                                    </ClientSettings> 
                                    <GroupingSettings CaseSensitive="false" /> 
                                    <MasterTableView DataKeyNames="ContactID,Replied"
                                        <RowIndicatorColumn> 
                                            <HeaderStyle Width="20px"></HeaderStyle> 
                                        </RowIndicatorColumn> 
                                        <ExpandCollapseColumn> 
                                            <HeaderStyle Width="20px"></HeaderStyle> 
                                        </ExpandCollapseColumn> 
                                        <HeaderStyle Font-Bold="true" /> 
                                        <Columns> 
                                             
                                        </Columns> 
                                    </MasterTableView> 
                                </telerik:RadGrid> 
    I'm using RadControls for ASP.NET AJAX Q1 2010.
    The grid is inside an update panel.
  2. Daniel
    Admin
    Daniel avatar
    4946 posts

    Posted 15 May 2010 Link to this post

    Hello Jijo,

    You won't see the Pager when your RadGrid doesn't have columns. Please either add some columns or enable the autogenerated columns feature (AutoGenerateColumns="true").

    Regards,
    Daniel
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. josephjijo
    josephjijo avatar
    24 posts
    Member since:
    Oct 2006

    Posted 17 May 2010 Link to this post

    I have the columns. Earlier I removed it while formatting the code block.
    Even if data is populated in the grid, the pager is not visible.

     <Columns> 
                                            <telerik:GridBoundColumn DataField="ContactID" HeaderText="ContactID" Visible="false" 
                                                UniqueName="ContactID"
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn DataField="FirstName" HeaderText="First Name" UniqueName="FirstName" 
                                                Visible="true"
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn DataField="LastName" HeaderText="Last Name" Visible="true" 
                                                UniqueName="LastName"
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn DataField="ContactType" HeaderText="Contact Type" Visible="true" 
                                                UniqueName="ContactType" AllowFiltering="true"
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn DataField="PostedDate" HeaderText="Posted Date" Visible="true" 
                                                UniqueName="PostedDate" AllowFiltering="false"
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn DataField="Replied" HeaderText="Replied" Visible="true" 
                                                UniqueName="Replied"
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridTemplateColumn HeaderText="Delete" UniqueName="Delete" AllowFiltering="false"
                                                <ItemTemplate> 
                                                    <asp:ImageButton ID="btnDelete" runat="server" ImageUrl="~/Images/deletes.gif" ToolTip="Delete" 
                                                        CommandName="Deletes" Style="cursor: hand" /> 
                                                </ItemTemplate> 
                                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle> 
                                                <ItemStyle HorizontalAlign="Center"></ItemStyle> 
                                            </telerik:GridTemplateColumn> 
                                            <telerik:GridTemplateColumn HeaderText="Reply/View" UniqueName="View" AllowFiltering="false"
                                                <ItemTemplate> 
                                                    <asp:ImageButton ID="btnView" runat="server" ImageUrl="~/Images/views.gif" ToolTip="Reply/View" 
                                                        CommandName="Reply" Style="cursor: hand" /> 
                                                </ItemTemplate> 
                                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle> 
                                                <ItemStyle HorizontalAlign="Center"></ItemStyle> 
                                            </telerik:GridTemplateColumn> 
                                            <telerik:GridClientSelectColumn ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" 
                                                UniqueName="Chk_DeleteAll"
                                                <HeaderStyle HorizontalAlign="Center" /> 
                                                <ItemStyle HorizontalAlign="Center" /> 
                                            </telerik:GridClientSelectColumn> 
                                        </Columns> 

  5. josephjijo
    josephjijo avatar
    24 posts
    Member since:
    Oct 2006

    Posted 18 May 2010 Link to this post

    Anyone from telerik
  6. Daniel
    Admin
    Daniel avatar
    4946 posts

    Posted 20 May 2010 Link to this post

    Hello Jijo,

    You can find a runnable demo, attached to this post. Please give it a try and let me know how to modify it to reproduce the problem on my end.

    Regards,
    Daniel
    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.
  7. josephjijo
    josephjijo avatar
    24 posts
    Member since:
    Oct 2006

    Posted 21 May 2010 Link to this post

    Hi Daniel,

    No it didnt solve my problem.
    Also when I run the above example, the pager is showing.
    but when I change the page size or filter anything the pager is disappearing.

    Regards,
    Jijo
  8. Answer
    Daniel
    Admin
    Daniel avatar
    4946 posts

    Posted 26 May 2010 Link to this post

    Hello Jijo,

    I tested your sample project - it runs fine on my end and the pager is visible all the time. Could you please try the latest version of RadControls for ASP.NET AJAX? There was a problem with the AlwaysVisible functionality when you change the page size in RadControls for ASP.NET Q1 2010.
    Q1 2010 SP1 release notes

    Regards,
    Daniel
    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.
  9. Vladislav
    Vladislav avatar
    5 posts
    Member since:
    Mar 2011

    Posted 24 Mar 2011 Link to this post

    Actually, there is a bug with the pager not showing in (at least) IE 9:
    It happens if the very first column of the grid has Display="false".
    That results in <COL style="DISPLAY: none"> in HTML, and since the pager is located in the very first column (albeit in the footer), it is not shown in IE.

    It works in Firefox, though.
  10. Pavel
    Admin
    Pavel avatar
    904 posts

    Posted 25 Mar 2011 Link to this post

    Hi Vladislav,

    I cannot reproduce the described problem in IE9. Please check the attached sample and let me know how to alter it in order to replicate the issue.

    Best wishes,
    Pavel
    the Telerik team
  11. Vladislav
    Vladislav avatar
    5 posts
    Member since:
    Mar 2011

    Posted 25 Mar 2011 Link to this post

    Actually, it turns out to be a subtle issue, and it's not RadGrid's fault:

    It happens only if the following conditions are met:

    1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> is used
    2. There is a client-side js handler that's undefined, like OnRowDblClick="myDblClickHandler".
    And if "Display notification about every script error is OFF in IE 9, there is no little yellow flag in the bottomleft corner as it used to be (at least I don't see it), so it's not obvious if there is an error.

    Below is a full Customers.aspx page that illustrates the problem.

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Columns.aspx.cs" Inherits="Columns" %>
    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">


    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
        <telerik:RadScriptManager ID="SM1" runat="server"></telerik:RadScriptManager>
        <telerik:RadGrid ID="RadGrid1" runat="server" OnNeedDataSource="RadGrid1_NeedDataSource" AllowPaging="true"
            AutoGenerateColumns="false" >
                       <ClientSettings>
                            <ClientEvents  OnRowDblClick="myDblClickHandler" /></ClientSettings>


     <MasterTableView TableLayout="Auto" AutoGenerateColumns="false">

                <Columns>
                    <telerik:GridBoundColumn DataField="Col1" HeaderText="Col1" UniqueName="Col1" Display="false"
                         >
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Col2" HeaderText="Col2" UniqueName="Col2"
                        >
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Col3" HeaderText="Col3" UniqueName="Col3"
                        >
                    </telerik:GridBoundColumn>
                </Columns>
            </MasterTableView>

        </telerik:RadGrid>
        </div>
        </form>
    </body>
    </html>
  12. Rohan
    Rohan avatar
    94 posts
    Member since:
    Jul 2012

    Posted 14 Aug 2012 Link to this post

    HI all ,
    i have problem with radgrid, when the rad grid was resize the  page size combobox  gets freeze . i have attached screen shot of bot before and after .

    Before resize



    After resize


    user not able to select the page size after the resize the rad grid within the radwindow  ...... how can i do this .............
  13. Daniel
    Admin
    Daniel avatar
    4946 posts

    Posted 17 Aug 2012 Link to this post

    Hello Rohan,

    Please double check your browser console for errors. I suppose that there is a javascript error breaking the aforementioned functionality.

    Regards,
    Daniel
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  14. Laxman
    Laxman avatar
    5 posts
    Member since:
    Jul 2013

    Posted 15 Nov 2013 Link to this post

    Hi ,
    I am facing problem with pagesize drop down position in new telerik version.
    Pls find the details in below.

    TQ

    http://www.telerik.com/community/forums/aspnet-ajax/grid/radgrid-header-problem-in-telerik-2013-3-1015-40.aspx

  15. Daniel
    Admin
    Daniel avatar
    4946 posts

    Posted 20 Nov 2013 Link to this post

    Hello,

    Please stick to the original forum post. My colleague Venelin will handle your question there.

    Regards,
    Daniel
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017